Skip to content

Commit cc18c39

Browse files
committed
Fix CI: toolchain order and rustflags
- Install nightly first, then stable, so stable is the default for clippy - Set rustflags: "" to prevent -D warnings from breaking cargo build-sbf (Anchor macros emit unexpected_cfgs warnings for anchor-debug, etc.)
1 parent cf51391 commit cc18c39

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: actions-rust-lang/setup-rust-toolchain@v1
24-
with:
25-
toolchain: ${{ env.RUST_TOOLCHAIN }}
26-
components: clippy
2723
- uses: actions-rust-lang/setup-rust-toolchain@v1
2824
with:
2925
toolchain: nightly
3026
components: rustfmt
27+
rustflags: ""
28+
- uses: actions-rust-lang/setup-rust-toolchain@v1
29+
with:
30+
toolchain: ${{ env.RUST_TOOLCHAIN }}
31+
components: clippy
3132
- uses: extractions/setup-just@v2
3233
- run: just lint
3334

@@ -39,6 +40,7 @@ jobs:
3940
- uses: actions-rust-lang/setup-rust-toolchain@v1
4041
with:
4142
toolchain: ${{ env.RUST_TOOLCHAIN }}
43+
rustflags: ""
4244
- name: Cache Solana CLI tools
4345
uses: actions/cache@v4
4446
with:

0 commit comments

Comments
 (0)