diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index feb90c1..6669231 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,18 +53,18 @@ jobs: run: echo "CXX=${{matrix.compiler}}" >> $GITHUB_ENV - name: Configure CMake - run: cmake -Wdev -Werror=dev -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -Wdev -Werror=dev -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${{matrix.extra_build_flags}} - name: Build working-directory: ${{github.workspace}}/build - run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel ${{env.num_cpus}} + run: cmake --build . --config ${BUILD_TYPE} --parallel ${num_cpus} - name: Test working-directory: ${{github.workspace}}/build - run: cmake --build . --config ${{env.BUILD_TYPE}} --target test - ARGS=-j$((${{env.num_cpus}} * 2)) # don't pass --parallel, which would affect compilation tests, but do run - # twice as many compilation tests as the number of available threads + run: cmake --build . --config ${BUILD_TYPE} --target test + ARGS=-j$((${num_cpus} * 2)) # don't pass --parallel, which would affect compilation tests, but do run + # twice as many compilation tests as the number of available threads - name: Codecov if: contains(matrix.extra_build_flags, 'coverage')