Skip to content

Commit

Permalink
fixup: only test with debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Mar 14, 2023
1 parent 931d6fd commit ace4265
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}

build_test:
name: 'Build + Test (Linux, ${{matrix.cc.cc}}-${{matrix.cc.v}}, ${{matrix.build_type}})'
name: 'Build + Test (Linux, ${{matrix.cc.cc}}-${{matrix.cc.v}})'
runs-on: ${{ matrix.os }}

needs: skip_duplicate
Expand All @@ -34,7 +34,6 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
build_type: [Release]
cc:
# GNU Compiler
- { cc: gcc, v: 10, cxx: g++ } # oldest possible
Expand Down Expand Up @@ -84,7 +83,7 @@ jobs:
cmake -E make_directory ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake -D CMAKE_BUILD_TYPE="${{matrix.build_type}}" -D ADIAR_STATS=ON ..
cmake -D CMAKE_BUILD_TYPE=DEBUG -D ADIAR_STATS=ON ..
cmake --build . --target test-adiar
- name: Run tests
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}

build_test:
name: 'Build + Test (Mac OS, ${{matrix.cc.cc}}@${{matrix.cc.v || matrix.cc.xcode}}, ${{matrix.build_type}})'
name: 'Build + Test (Mac OS, ${{matrix.cc.cc}}@${{matrix.cc.v || matrix.cc.xcode}})'
runs-on: ${{ matrix.os }}

needs: skip_duplicate
Expand All @@ -34,7 +34,6 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest]
build_type: [Release]
cc:
# GNU Compiler
- { cc: gcc, v: 7, cxx: g++, xcode: latest }
Expand Down Expand Up @@ -94,7 +93,7 @@ jobs:
cmake -E make_directory ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake -D CMAKE_BUILD_TYPE="${{matrix.build_type}}" -D CMAKE_CXX_STANDARD=17 ..
cmake -D CMAKE_BUILD_TYPE=DEBUG -D ADIAR_STATS=ON ..
cmake --build . --target test-adiar
- name: Run tests
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}

build_test:
name: 'Build + Test (Windows, ${{matrix.build_type}})'
name: 'Build + Test (Windows)'
runs-on: windows-latest

# needs: skip_duplicate
# if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}

strategy:
fail-fast: false
matrix:
build_type: [Release]

steps:
# Git repo set up
Expand Down Expand Up @@ -68,7 +66,7 @@ jobs:
cmake -E make_directory ${{github.workspace}}\build
cd ${{github.workspace}}\build
SET CXXFLAGS="%CXXFLAGS% -D_HAS_AUTO_PTR_ETC=1"
cmake -D CMAKE_BUILD_TYPE="${{matrix.build_type}}" -D Boost_INCLUDE_DIR=${{env.BOOST_ROOT}}/include -D Boost_LIBRARY_DIRS=${{env.BOOST_ROOT}}/lib ..
cmake -D CMAKE_BUILD_TYPE=DEBUG -D Boost_INCLUDE_DIR=${{env.BOOST_ROOT}}/include -D Boost_LIBRARY_DIRS=${{env.BOOST_ROOT}}/lib -D ADIAR_STATS=ON ..
cmake --build . --target test-adiar
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
Expand Down

0 comments on commit ace4265

Please sign in to comment.