Skip to content

Commit ed8288d

Browse files
committed
a bunch of CI fixes
1 parent 4f1ef7c commit ed8288d

File tree

1 file changed

+4
-49
lines changed

1 file changed

+4
-49
lines changed

.github/workflows/check-rust.yml

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
env:
4444
RELEASE_NAME: development
4545
# RUSTFLAGS: -A warnings
46-
RUSTV: ${{ matrix.rust-branch }}
4746
RUST_BACKTRACE: full
48-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
4947
SKIP_WASM_BUILD: 1
5048
TARGET: ${{ matrix.rust-target }}
5149
steps:
@@ -55,10 +53,10 @@ jobs:
5553
- name: Install dependencies
5654
run: sudo apt-get update && sudo apt-get install -y build-essential
5755

58-
- name: Install Rust ${{ matrix.rust-branch }}
56+
- name: Install Rust Nightly
5957
uses: actions-rs/[email protected]
6058
with:
61-
toolchain: ${{ matrix.rust-branch }}
59+
toolchain: nightly
6260
components: rustfmt
6361
profile: minimal
6462

@@ -84,11 +82,10 @@ jobs:
8482
env:
8583
RELEASE_NAME: development
8684
# RUSTFLAGS: -A warnings
87-
RUSTV: ${{ matrix.rust-branch }}
8885
RUST_BACKTRACE: full
89-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
9086
SKIP_WASM_BUILD: 1
9187
TARGET: ${{ matrix.rust-target }}
88+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
9289
steps:
9390
- name: Check-out repository under $GITHUB_WORKSPACE
9491
uses: actions/checkout@v4
@@ -98,13 +95,6 @@ jobs:
9895
sudo apt-get update &&
9996
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
10097
101-
- name: Install Rust ${{ matrix.rust-branch }}
102-
uses: actions-rs/[email protected]
103-
with:
104-
toolchain: ${{ matrix.rust-branch }}
105-
components: rustfmt, clippy
106-
profile: minimal
107-
10898
- name: Utilize Shared Rust Cache
10999
uses: Swatinem/[email protected]
110100
with:
@@ -128,12 +118,11 @@ jobs:
128118
# - macos-latest
129119
env:
130120
RELEASE_NAME: development
131-
RUSTV: ${{ matrix.rust-branch }}
132121
RUSTFLAGS: -D warnings
133122
RUST_BACKTRACE: full
134-
RUST_BIN_DIR: target/${{ matrix.rust-target }}
135123
SKIP_WASM_BUILD: 1
136124
TARGET: ${{ matrix.rust-target }}
125+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
137126
steps:
138127
- name: Check-out repository under $GITHUB_WORKSPACE
139128
uses: actions/checkout@v4
@@ -166,8 +155,6 @@ jobs:
166155
runs-on: SubtensorCI
167156
strategy:
168157
matrix:
169-
rust-branch:
170-
- stable
171158
rust-target:
172159
- x86_64-unknown-linux-gnu
173160
# - x86_64-apple-darwin
@@ -180,7 +167,6 @@ jobs:
180167
env:
181168
RELEASE_NAME: development
182169
# RUSTFLAGS: -A warnings
183-
RUSTV: ${{ matrix.rust-branch }}
184170
RUST_BACKTRACE: full
185171
RUST_BIN_DIR: target/${{ matrix.rust-target }}
186172
SKIP_WASM_BUILD: 1
@@ -194,13 +180,6 @@ jobs:
194180
sudo apt-get update &&
195181
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
196182
197-
- name: Install Rust ${{ matrix.rust-branch }}
198-
uses: actions-rs/[email protected]
199-
with:
200-
toolchain: ${{ matrix.rust-branch }}
201-
components: rustfmt, clippy
202-
profile: minimal
203-
204183
- name: Utilize Shared Rust Cache
205184
uses: Swatinem/[email protected]
206185
with:
@@ -215,8 +194,6 @@ jobs:
215194
runs-on: SubtensorCI
216195
strategy:
217196
matrix:
218-
rust-branch:
219-
- stable
220197
rust-target:
221198
- x86_64-unknown-linux-gnu
222199
# - x86_64-apple-darwin
@@ -229,7 +206,6 @@ jobs:
229206
env:
230207
RELEASE_NAME: development
231208
# RUSTFLAGS: -A warnings
232-
RUSTV: ${{ matrix.rust-branch }}
233209
RUST_BACKTRACE: full
234210
RUST_BIN_DIR: target/${{ matrix.rust-target }}
235211
SKIP_WASM_BUILD: 1
@@ -243,13 +219,6 @@ jobs:
243219
sudo apt-get update &&
244220
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
245221
246-
- name: Install Rust ${{ matrix.rust-branch }}
247-
uses: actions-rs/[email protected]
248-
with:
249-
toolchain: ${{ matrix.rust-branch }}
250-
components: rustfmt, clippy
251-
profile: minimal
252-
253222
- name: Utilize Rust shared cached
254223
uses: Swatinem/[email protected]
255224
with:
@@ -278,7 +247,6 @@ jobs:
278247
env:
279248
RELEASE_NAME: development
280249
# RUSTFLAGS: -A warnings
281-
RUSTV: ${{ matrix.rust-branch }}
282250
RUST_BACKTRACE: full
283251
RUST_BIN_DIR: target/${{ matrix.rust-target }}
284252
SKIP_WASM_BUILD: 1
@@ -292,13 +260,6 @@ jobs:
292260
sudo apt-get update &&
293261
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
294262
295-
- name: Install Rust ${{ matrix.rust-branch }}
296-
uses: actions-rs/[email protected]
297-
with:
298-
toolchain: ${{ matrix.rust-branch }}
299-
components: rustfmt, clippy
300-
profile: minimal
301-
302263
- name: Utilize Rust shared cached
303264
uses: Swatinem/[email protected]
304265
with:
@@ -322,12 +283,6 @@ jobs:
322283
runs-on: SubtensorCI
323284

324285
steps:
325-
- name: Install stable Rust
326-
uses: actions-rs/toolchain@v1
327-
with:
328-
profile: minimal
329-
toolchain: stable
330-
331286
- name: Install Zepter
332287
run: cargo install --locked -q zepter && zepter --version
333288

0 commit comments

Comments
 (0)