Skip to content

Commit 94be7cc

Browse files
authored
fix(ci): pin to commit hash on master and configure toolchain / components for rust-toolchain (#117)
Pin to commit on master per https://github.com/dtolnay/rust-toolchain?tab=readme-ov-file#choice-of-full-length-commit-sha and configure components instead This should resolve the incorrect prompt to update the hash here: #116
1 parent a514af2 commit 94be7cc

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
- uses: actions/checkout@v5
3535
with:
3636
persist-credentials: false
37-
- uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
37+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
38+
with:
39+
toolchain: stable
3840
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
3941
# Only run tests on latest stable and above
4042
- name: build
@@ -52,8 +54,9 @@ jobs:
5254
- uses: actions/checkout@v5
5355
with:
5456
persist-credentials: false
55-
- uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
57+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
5658
with:
59+
toolchain: stable
5760
targets: wasm32-unknown-unknown
5861
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
5962
with:
@@ -68,7 +71,9 @@ jobs:
6871
- uses: actions/checkout@v5
6972
with:
7073
persist-credentials: false
71-
- uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
74+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
75+
with:
76+
toolchain: stable
7277
- uses: taiki-e/install-action@c9a06c0e5d38d182732372ae4390adb6ddbfd51b # cargo-hack
7378
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
7479
with:
@@ -83,7 +88,10 @@ jobs:
8388
- uses: actions/checkout@v5
8489
with:
8590
persist-credentials: false
86-
- uses: dtolnay/rust-toolchain@45949235481cda149033232bdf068b00ceb0b28d # clippy
91+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
92+
with:
93+
toolchain: nightly
94+
components: clippy
8795
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
8896
with:
8997
cache-on-failure: true
@@ -98,7 +106,9 @@ jobs:
98106
- uses: actions/checkout@v5
99107
with:
100108
persist-credentials: false
101-
- uses: dtolnay/rust-toolchain@55d80eb3c5a4228eec5390a083c092095115c6f1 # nightly
109+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
110+
with:
111+
toolchain: nightly
102112
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
103113
with:
104114
cache-on-failure: true
@@ -113,8 +123,9 @@ jobs:
113123
- uses: actions/checkout@v5
114124
with:
115125
persist-credentials: false
116-
- uses: dtolnay/rust-toolchain@55d80eb3c5a4228eec5390a083c092095115c6f1 # nightly
126+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master
117127
with:
128+
toolchain: nightly
118129
components: rustfmt
119130
- run: cargo fmt --all --check
120131

0 commit comments

Comments
 (0)