Skip to content

Commit

Permalink
[gha] Drop unecessary env context in cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed Jul 19, 2022
1 parent 40d0b3e commit db6d049
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit db6d049

Please # to comment.