Skip to content

Commit

Permalink
ENH: Run tests on release
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa committed Jan 12, 2023
1 parent 9f9403c commit 5b2d314
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ jobs:
cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-G "${{ matrix.config.generators }}" \
-DBUILD_TESTING=ON \
-DRUN_SHORT_TESTS=ON \
-DRUN_LONG_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=${{ runner.temp }}/install/ants-${{ env.ANTS_VERSION }} \
${GITHUB_WORKSPACE}
- name: Build
Expand All @@ -104,6 +107,12 @@ jobs:
run: |
cd build
cmake --build . --config ${{ matrix.config.build_type }} --parallel
- name: Test
shell: bash
working-directory: ${{ runner.temp }}
run: |
cd build/ANTS-build
ctest
- name: Install
shell: bash
working-directory: ${{ runner.temp }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release-docker-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,22 @@ jobs:
cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-G "${{ matrix.config.generators }}" \
-DBUILD_TESTING=ON \
-DRUN_SHORT_TESTS=ON \
-DRUN_LONG_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=/opt/install/ants-${{ env.ANTS_VERSION }} \
${GITHUB_WORKSPACE}
- name: Build
shell: bash
run: |
cd /opt/build
cmake --build . --config ${{ matrix.config.build_type }} --parallel 1
- name: Test
shell: bash
working-directory: ${{ runner.temp }}
run: |
cd build/ANTS-build
ctest
- name: Install
shell: bash
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release-win-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
cd build
cmake `
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} `
-DBUILD_TESTING=ON `
-DRUN_SHORT_TESTS=ON `
-DRUN_LONG_TESTS=OFF `
-DCMAKE_INSTALL_PREFIX:PATH=${{ runner.temp }}/install/ants-${{ env.ANTS_VERSION }} `
${{ github.workspace }}
- name: Build
Expand All @@ -60,6 +63,11 @@ jobs:
run: |
cd build/ANTS-build
cmake --install .
- name: Test
working-directory: ${{ runner.temp }}
run: |
cd build/ANTS-build
ctest
- name: Pack
working-directory: ${{ runner.temp }}
run: |
Expand Down

0 comments on commit 5b2d314

Please sign in to comment.