Skip to content

Commit

Permalink
CI: Add some flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVeryDarkness committed Aug 11, 2024
1 parent b4a7628 commit ad87aa3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ jobs:

coverage:
name: Test Coverage
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
OS: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
id: toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.63
toolchain: stable
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
Expand All @@ -43,8 +49,9 @@ jobs:
uses: codecov/codecov-action@v3
with:
file: lcov.info
flags: unittests
flags: unittests,${{ steps.toolchain.outputs.name }}
name: iof
env_vars: OS
# Failing to upload results will cause a CI error.
# So remember to use a token.
fail_ci_if_error: true
Expand Down

0 comments on commit ad87aa3

Please sign in to comment.