From db6d04956127162728a11b0a4a987590ee2045b7 Mon Sep 17 00:00:00 2001 From: Ricardo Abreu Date: Tue, 19 Jul 2022 02:41:54 +0100 Subject: [PATCH] [gha] Drop unecessary env context in cmds --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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')