Skip to content

Commit

Permalink
use artifact to pass build from the check-build job to other jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Jan 26, 2023
1 parent 41193ed commit 7b046e3
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,24 @@ jobs:
- name: Check if the distribution is up to date
run: git diff --exit-code HEAD

- name: Upload the distribution as an artifact
uses: actions/[email protected]
with:
name: dist
path: dist/ test/ action.yml

standard-usage:
needs: check-build
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Download the distribution artifact
uses: actions/[email protected]
with:
name: dist

- name: Configure and build the test project
uses: threeal/[email protected]
Expand All @@ -51,14 +60,17 @@ jobs:
uses: ./

llvm-usage:
needs: check-build
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Download the distribution artifact
uses: actions/[email protected]
with:
name: dist

- name: Configure and build the test project
uses: threeal/[email protected]
Expand All @@ -77,14 +89,17 @@ jobs:
gcov-executable: ${{ matrix.os == 'macos' && 'xcrun ' || '' }}llvm-cov gcov

exclusion-usage:
needs: check-build
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Download the distribution artifact
uses: actions/[email protected]
with:
name: dist

- name: Configure and build the test project
uses: threeal/[email protected]
Expand Down Expand Up @@ -123,14 +138,17 @@ jobs:
fail-under-line: 100

coveralls-usage:
needs: check-build
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Download the distribution artifact
uses: actions/[email protected]
with:
name: dist

- name: Configure and build the test project
uses: threeal/[email protected]
Expand Down

0 comments on commit 7b046e3

Please sign in to comment.