Skip to content

Commit

Permalink
ci: use latest stable rust
Browse files Browse the repository at this point in the history
cargo_metadata depends on e.g. `home`[0] whose MSRV is N-2[1], so we
can't easily pin our Rust version.

Link: https://crates.io/crates/home [0]
Link: rust-lang/cargo@c6c1df47 [1]
  • Loading branch information
tamird committed Dec 17, 2024
1 parent 6580d77 commit 6ea4928
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
matrix:
runner:
- ubuntu-latest # x86
rust:
- 1.80.1
program:
- kprobe
- kretprobe
Expand All @@ -50,10 +48,8 @@ jobs:
- tracepoint
include:
- runner: macos-13 # x86
rust: 1.80.1
program: kprobe
- runner: macos-14 # arm64
rust: 1.80.1
program: kprobe

runs-on: ${{ matrix.runner }}
Expand All @@ -65,22 +61,18 @@ jobs:
with:
components: clippy,rust-src,rustfmt

- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@stable
if: runner.os == 'macOS' && runner.arch == 'X64'
with:
toolchain: ${{ matrix.rust }}
targets: x86_64-unknown-linux-musl

- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@stable
if: runner.os == 'macOS' && runner.arch == 'ARM64'
with:
toolchain: ${{ matrix.rust }}
targets: aarch64-unknown-linux-musl

- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@stable
if: runner.os == 'Linux'
with:
toolchain: ${{ matrix.rust }}

- uses: Swatinem/rust-cache@v2

Expand Down

0 comments on commit 6ea4928

Please sign in to comment.