Skip to content

Commit 58d19af

Browse files
Fix coverage reporting and test results publishing
1 parent 6c40d55 commit 58d19af

2 files changed

Lines changed: 22 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
standard: ["11", "17"]
1616
memory: ["default", "lowmem"]
1717
jit: [OFF]
18+
coverage: [false]
1819
include:
1920
- config: Debug
2021
sccache: "false"
@@ -158,6 +159,7 @@ jobs:
158159
standard: [c++11, c++17]
159160
memory: ["default", "lowmem"]
160161
jit: [OFF]
162+
coverage: [false]
161163
exclude:
162164
- config: Debug
163165
reuse_slots: ON
@@ -182,17 +184,17 @@ jobs:
182184
include:
183185
- memory: lowmem
184186
cmake_mem_flag: -DXAD_REDUCED_MEMORY=ON
185-
# JIT-enabled builds: Release, C++11, all compiler versions
186-
# Coverage job (requires Debug)
187-
# - jit: ON # codegen requires commercial license
188-
# config: Debug
189-
# version: "11"
190-
# reuse_slots: OFF
191-
# standard: c++11
192-
# memory: default
193-
# coverage: true
194-
# coverage_cxx_flags: "-fprofile-arcs -ftest-coverage"
195-
# coverage_ld_flags: "-lgcov"
187+
# Coverage job (requires Debug, GCC 11)
188+
- jit: OFF
189+
config: Debug
190+
version: "11"
191+
reuse_slots: OFF
192+
standard: c++11
193+
memory: default
194+
coverage: true
195+
coverage_cxx_flags: "-fprofile-arcs -ftest-coverage"
196+
coverage_ld_flags: "-lgcov"
197+
# JIT-enabled builds (commented out - codegen requires commercial license)
196198
# All GCC versions
197199
# - jit: ON # codegen requires commercial license
198200
# config: Release
@@ -346,6 +348,7 @@ jobs:
346348
standard: ["11", "17"]
347349
memory: ["default", "lowmem"]
348350
jit: [OFF]
351+
coverage: [false]
349352
include:
350353
- version: "11"
351354
cxx: clang++
@@ -501,6 +504,7 @@ jobs:
501504
standard: [c++11, c++17]
502505
memory: ["default", "lowmem"]
503506
jit: [OFF]
507+
coverage: [false]
504508
include:
505509
- memory: lowmem
506510
cmake_mem_flag: -DXAD_REDUCED_MEMORY=ON
@@ -648,3 +652,4 @@ jobs:
648652
with:
649653
name: Event File
650654
path: ${{ github.event_path }}
655+
overwrite: true

.github/workflows/testresults.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,12 @@ jobs:
1919
actions: read
2020

2121
steps:
22-
- name: Download and Extract Artifacts
23-
env:
24-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
25-
run: |
26-
mkdir -p artifacts && cd artifacts
27-
28-
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
29-
30-
gh api "${artifacts_url}?per_page=200" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
31-
do
32-
IFS=$'\t' read name url <<< "$artifact"
33-
gh api $url > "$name.zip"
34-
unzip -d "$name" "$name.zip"
35-
done
22+
- name: Download Artifacts
23+
uses: actions/download-artifact@v4
24+
with:
25+
path: artifacts
26+
run-id: ${{ github.event.workflow_run.id }}
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
3628

3729
- name: Publish Test Results
3830
uses: EnricoMi/publish-unit-test-result-action@v2

0 commit comments

Comments
 (0)