Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -26,10 +26,10 @@ jobs:
version: master

- name: Setup kcov
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-22.04'
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-latest'
run: |
wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz
sudo tar xf kcov-amd64.tar.gz -C /
sudo apt-get update
sudo apt-get install kcov

- name: Check Formatting
run: zig fmt --ast-check --check src
Expand All @@ -41,11 +41,11 @@ jobs:
run: zig build --summary all

- name: Collect Coverage
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-22.04'
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-latest'
run: zig build coverage -Duse-llvm --summary all

- name: Upload coverage reports to Codecov
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-22.04'
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
with:
directory: zig-out/coverage/kcov-merged
Expand Down
Loading