Skip to content

Commit 8432721

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

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,22 @@ jobs:
8686
name: Coverage
8787

8888
timeout-minutes: 30
89-
runs-on: ubuntu-latest
89+
runs-on: macos-latest
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

102-
- name: Install kcov
103-
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/
108-
sudo apt-get install -y kcov
100+
- run: brew install kcov
101+
102+
- uses: ./.github/actions/setup-zig
103+
with:
104+
version: '0.14.1'
109105

110106
- run: zig build test -Dcoverage
111107

0 commit comments

Comments
 (0)