Skip to content

Commit b9496d8

Browse files
authored
ci: Fix rust toolchain (#521)
1 parent 3652b04 commit b9496d8

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
- name: Checkout
3030
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131

32+
# Can be removed once https://github.com/actions/runner-images/pull/13076 is released
33+
- name: Setup Rust toolchain
34+
uses: actions-rust-lang/setup-rust-toolchain@02be93da58aa71fb456aa9c43b301149248829d8 # v1.15.1
35+
3236
- name: Check formatting
3337
run: cargo fmt --check
3438

@@ -45,8 +49,6 @@ jobs:
4549
- name: Build npm package
4650
run: npm ci
4751

48-
49-
5052
- name: Cargo test 'adblock' package
5153
run: cargo test --all-features --tests --no-fail-fast
5254

.github/workflows/sanity.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

20+
# Can be removed once https://github.com/actions/runner-images/pull/13076 is released
21+
- name: Setup Rust toolchain
22+
uses: actions-rust-lang/setup-rust-toolchain@02be93da58aa71fb456aa9c43b301149248829d8 # v1.15.1
23+
2024
- name: Cargo clippy
2125
run: cargo clippy --all-targets --all-features -- -D warnings
2226

rust-toolchain.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[toolchain]
22
channel = "stable"
3+
components = ["clippy", "rustfmt" ]

0 commit comments

Comments
 (0)