Skip to content

Commit

Permalink
ci: separate build and test step
Browse files Browse the repository at this point in the history
see: CleverRaven/Cataclysm-DDA#54435

Co-authored-by: Brett Dong <[email protected]>
  • Loading branch information
scarf005 and BrettDong committed Oct 3, 2023
1 parent 4bf0255 commit fccd41a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ jobs:
- uses: ammaraskar/gcc-problem-matcher@master

- name: build and test
- name: build
if: ${{ env.SKIP == 'false' }}
run: bash ./build-scripts/build.sh
run: bash ./build-scripts/gha_compile_only.sh

- name: post-build ccache stats and cleanup
if: ${{ env.SKIP == 'false' && !failure() && (runner.os == 'Linux' || runner.os == 'macOS') }}
Expand All @@ -241,6 +241,10 @@ jobs:
if: ${{ github.ref_name != 'upload' && env.SKIP == 'false' && !failure() && (runner.os == 'Linux' || runner.os == 'macOS') }}
run: ccache --clear

- name: run tests
if: ${{ env.SKIP == 'false' && env.SKIP_TESTS == 'false' }}
run: bash ./build-scripts/gha_test_only.sh

- name: upload artifacts if failed
uses: actions/upload-artifact@v1
if: failure()
Expand Down

0 comments on commit fccd41a

Please sign in to comment.