mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Try to fix code coverage upload (fixes #6277)
[2023-01-12T17:25:29.471Z] ['error'] There was an error running the uploader: No gcov files found Broken in https://github.com/ddnet/ddnet/pull/5599 because the cmake-init-env overwrites outside env variables
This commit is contained in:
parent
ee04cd4dda
commit
5ea8a0f872
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -140,18 +140,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir headless
|
mkdir headless
|
||||||
cd headless
|
cd headless
|
||||||
CFLAGS="$CFLAGS --coverage"
|
|
||||||
CXXFLAGS="$CXXFLAGS --coverage"
|
|
||||||
LDFLAGS="$LDFLAGS --coverage"
|
|
||||||
${{ matrix.cmake-path }}cmake --version
|
${{ 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 -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 --build . --config Debug ${{ matrix.build-args }}
|
${{ 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)
|
- name: Test headless client (unit tests)
|
||||||
if: contains(matrix.os, 'ubuntu-latest')
|
if: contains(matrix.os, 'ubuntu-latest')
|
||||||
run: |
|
run: |
|
||||||
cd headless
|
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)
|
- name: Upload Codecov report (unit tests)
|
||||||
if: contains(matrix.os, 'ubuntu-latest')
|
if: contains(matrix.os, 'ubuntu-latest')
|
||||||
|
@ -212,7 +209,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
gcov: true
|
gcov: true
|
||||||
gcov_include: src
|
gcov_include: src
|
||||||
flags: intgrationtests
|
flags: integrationtests
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue