Skip to content

Commit

Permalink
ci: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenMian committed Feb 15, 2024
1 parent 0e37265 commit bbd4e79
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Test

on: [pull_request, push]

env:
env:
CARGO_TERM_COLOR: always

jobs:
test:
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -25,9 +25,7 @@ jobs:
target/
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}

- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable

- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
Expand All @@ -43,7 +41,7 @@ jobs:
run: cargo llvm-cov --all-features --no-cfg-coverage --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info

0 comments on commit bbd4e79

Please sign in to comment.