Skip to content

Commit

Permalink
Release without tests. (#87)
Browse files Browse the repository at this point in the history
Does not build tests for the packaged binary.
  • Loading branch information
aliddell authored Aug 9, 2023
1 parent 14d148a commit cfe19e8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@ jobs:
with:
submodules: true

- name: CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release

- name: Build
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
cmake --build ${{github.workspace}}/build --config Release
cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C Release -G ZIP
- name: Test # don't release if tests are failing
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -L anyplatform --output-on-failure
run: ctest -C Release -L anyplatform --output-on-failure

- name: Package
run: |
cmake -B ${{github.workspace}}/pack -DCMAKE_BUILD_TYPE=Release -DNOTEST=1
cmake --build ${{github.workspace}}/pack --config Release
cpack --config ${{github.workspace}}/pack/CPackConfig.cmake -C Release -G ZIP
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit cfe19e8

Please sign in to comment.