Skip to content

Commit

Permalink
Release without tests. (acquire-project#75)
Browse files Browse the repository at this point in the history
Does not build tests for the packaged binary.
  • Loading branch information
aliddell committed Aug 9, 2023
1 parent 6d9b6df commit bb28ad3
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,23 @@ jobs:
with:
arch: amd64_x86

- name: Configure
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 unless tests pass
working-directory: ${{github.workspace}}/build
run: |
ctest -C Release -L anyplatform --output-on-failure
ctest -C Release -L acquire-driver-hdcam --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:
name: windows-latest binaries # technically this is not windows-latest, but for consistency
Expand All @@ -80,18 +83,21 @@ jobs:
with:
submodules: recursive

- 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 unless tests pass
working-directory: ${{github.workspace}}/build
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:
name: ${{matrix.platform}} binaries
Expand Down

0 comments on commit bb28ad3

Please sign in to comment.