File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 27
27
- name : build (LLVM ${{ matrix.llvm_version }})
28
28
# Run the build manually in `nix develop` to keep non-outputs around
29
29
run : |
30
- nix develop .#oid-llvm${{ matrix.llvm_version }} --command cmake -B build -G Ninja -DWITH_FLAKY_TESTS=Off -DFORCE_BOOST_STATIC=Off
30
+ nix develop .#oid-llvm${{ matrix.llvm_version }} --command cmake -B build -G Ninja \
31
+ -DWITH_FLAKY_TESTS=Off \
32
+ -DFORCE_BOOST_STATIC=Off \
33
+ -DCODE_COVERAGE=On
31
34
nix develop .#oid-llvm${{ matrix.llvm_version }} --command ninja -C build
32
35
- name : test (LLVM ${{ matrix.llvm_version }})
33
36
env :
46
49
--repeat until-pass:3 \
47
50
--exclude-from-file ../../.github/workflows/tests_failing_under_nix.txt \
48
51
--output-junit results.xml
52
+
53
+ - name : upload coverage
54
+ continue-on-error : true
55
+ uses : coverallsapp/github-action@v2
56
+ with :
57
+ flag-name : run-${{ join(matrix.*, '-') }}
58
+ parallel : true
59
+
49
60
- name : upload results
50
61
uses : actions/upload-artifact@v4
51
62
if : success() || failure()
52
63
with :
53
64
name : test-results-${{ matrix.llvm_version }}
54
65
path : build/test/results.xml
66
+
67
+ finalise-coverage :
68
+ needs : build-test
69
+ if : ${{ always() }}
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - name : finalise coverage
73
+ uses : coverallsapp/github-action@v2
74
+ with :
75
+ parallel-finished : true
76
+ carryforward : " run-15,run-16"
77
+
Original file line number Diff line number Diff line change 108
108
in
109
109
pkgs . mkShell . override { stdenv = llvmPackages . stdenv ; } {
110
110
inputsFrom = [ self . packages . ${ system } . "oid-llvm${ toString llvmVersion } " ] ;
111
- buildInputs = [ ] ;
111
+ buildInputs = with pkgs ; [ lcov ] ;
112
112
} ;
113
113
in
114
114
{
You can’t perform that action at this time.
0 commit comments