Skip to content

Commit cd91c04

Browse files
committed
Fix coverage job
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent 396837e commit cd91c04

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,32 @@ jobs:
8686
name: Coverage
8787

8888
timeout-minutes: 30
89-
runs-on: ubuntu-latest
89+
runs-on: ubuntu-22.04
9090

9191
permissions:
92+
contents: read # Remove after making repo public
9293
id-token: write
9394

94-
env:
95-
KCOV_VERSION: v42
96-
9795
steps:
9896
- uses: actions/checkout@v4
9997
with:
10098
submodules: recursive
10199

102100
- name: Install kcov
103101
run: |
104-
gh release download ${{ env.KCOV_VERSION }} --repo SimonKagstrom/kcov --pattern 'kcov-amd64.tar.gz'
105-
tar -xzf kcov-amd64.tar.gz
106-
sudo cp -r usr/local/* /usr/local/
107-
rm -rf kcov-amd64.tar.gz usr/
102+
sudo apt-get update
108103
sudo apt-get install -y kcov
104+
kcov --version
105+
106+
- name: Install Zig
107+
uses: ./.github/actions/setup-zig
108+
with:
109+
version: '0.14.1'
110+
111+
- uses: actions/cache@v4
112+
with:
113+
path: .zig-cache
114+
key: zig-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('build.zig', 'build.zig.zon') }}
109115

110116
- run: zig build test -Dcoverage
111117

0 commit comments

Comments
 (0)