diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00c64b6ef..b07e29367 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,18 +140,15 @@ jobs: run: | mkdir headless cd headless - CFLAGS="$CFLAGS --coverage" - CXXFLAGS="$CXXFLAGS --coverage" - LDFLAGS="$LDFLAGS --coverage" ${{ matrix.cmake-path }}cmake --version - ${{ matrix.cmake-path }}cmake -E env ${{ matrix.cmake-init-env }} ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DHEADLESS_CLIENT=ON -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. .. - ${{ matrix.cmake-path }}cmake --build . --config Debug ${{ matrix.build-args }} + ${{ matrix.cmake-path }}cmake -E env CXXFLAGS="--coverage -Werror" ${{ matrix.cmake-path }}cmake -E env LDFLAGS="--coverage -Werror" ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DHEADLESS_CLIENT=ON -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. .. + ${{ matrix.cmake-path }}cmake -E env RUSTFLAGS="-Clink-arg=--coverage" ${{ matrix.cmake-path }}cmake --build . --config Debug ${{ matrix.build-args }} - name: Test headless client (unit tests) if: contains(matrix.os, 'ubuntu-latest') run: | cd headless - ${{ matrix.cmake-path }}cmake --build . --config Debug --target run_tests ${{ matrix.build-args }} + ${{ matrix.cmake-path }}cmake -E env RUSTFLAGS="-Clink-arg=--coverage" RUSTDOCFLAGS="-Clink-arg=--coverage" ${{ matrix.cmake-path }}cmake --build . --config Debug --target run_tests ${{ matrix.build-args }} - name: Upload Codecov report (unit tests) if: contains(matrix.os, 'ubuntu-latest') @@ -212,7 +209,7 @@ jobs: with: gcov: true gcov_include: src - flags: intgrationtests + flags: integrationtests - name: Package run: |