Skip to content

Commit ad04f25

Browse files
Update Rust toolchain: nightly-2024-07-10 -> stable 1.81.0 (#1088)
* try different toolchain * update rust version * remove upgrade protocol and all its deps * remove upgrade protocol and all its deps * use stable * use specific rust version * lint with nightly (#1091) * lint with nightly * lint with nightly * lint with nightly * lint with nightly * lint with stable (#1092)
1 parent bda7fb4 commit ad04f25

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+905
-3274
lines changed

Diff for: .github/workflows/build-all-targets.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
# Split the test and bench caches, the have different debug settings
2828
key: "test"
2929

30-
- name: Install Rust nightly
31-
run: rustup toolchain install nightly-2024-07-10
30+
- name: Install Rust
31+
run: rustup toolchain install 1.81.0
3232

33-
- name: Set Rust nightly as default
34-
run: rustup default nightly-2024-07-10
33+
- name: Set Rust as default
34+
run: rustup default 1.81.0
3535

3636
# Building tests in release mode checks warnings and compiler errors that depend on optimisations
3737
- name: Build Tests
@@ -53,11 +53,11 @@ jobs:
5353
# Split the test and bench caches, they have different debug settings
5454
key: "bench"
5555

56-
- name: Install Rust nightly
57-
run: rustup toolchain install nightly-2024-07-10
56+
- name: Install Rust
57+
run: rustup toolchain install 1.81.0
5858

59-
- name: Set Rust nightly as default
60-
run: rustup default nightly-2024-07-10
59+
- name: Set Rust as default
60+
run: rustup default 1.81.0
6161

6262
- name: Build All Targets
6363
run: cargo build --release --all-features --lib --bins --benches --examples

Diff for: .github/workflows/check-licenses.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ jobs:
1414
runs-on: ubuntu-24.04
1515
steps:
1616
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # [email protected]
17-
- uses: EmbarkStudios/cargo-deny-action@8371184bd11e21dcf8ac82ebf8c9c9f74ebf7268 # [email protected]
17+
- uses: EmbarkStudios/cargo-deny-action@8371184bd11e21dcf8ac82ebf8c9c9f74ebf7268
18+
with:
19+
rust-version: "1.81.0"

Diff for: .github/workflows/doc.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
- name: Show errors inline
2525
uses: r7kamura/rust-problem-matchers@v1
2626

27-
- name: Install Rust nightly
28-
run: rustup toolchain install nightly-2024-07-10
27+
- name: Install Rust
28+
run: rustup toolchain install 1.81.0
2929

30-
- name: Set Rust nightly as default
31-
run: rustup default nightly-2024-07-10
30+
- name: Set Rust as default
31+
run: rustup default 1.81.0
3232

3333
- name: Build Docs
3434
run: cargo doc --all-features --no-deps --document-private-items

Diff for: .github/workflows/lint-clippy.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ jobs:
3939
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
4040
run: sudo apt install protobuf-compiler
4141

42-
- name: Install Rust nightly
42+
- name: Install Rust
4343
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
44-
run: rustup toolchain install nightly-2024-07-10
44+
run: rustup toolchain install 1.81.0
4545

46-
- name: Set Rust nightly as default
46+
- name: Set Rust as default
4747
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
48-
run: rustup default nightly-2024-07-10
48+
run: rustup default 1.81.0
4949

5050
- name: Install Rust clippy for checking clippy errors
5151
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'

Diff for: .github/workflows/lint-rustfmt.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
uses: actions/checkout@v4
1717
- name: Show errors inline
1818
uses: r7kamura/rust-problem-matchers@v1
19-
- name: Install Rust nightly
20-
run: rustup toolchain install nightly-2024-07-10
21-
- name: Set Rust nightly as default
22-
run: rustup default nightly-2024-07-10
19+
- name: Install Rust
20+
run: rustup toolchain install 1.81.0
21+
- name: Set Rust as default
22+
run: rustup default 1.81.0
2323
- name: Install Rustfmt for formatting
2424
run: rustup component add rustfmt
2525
- name: Run Rustfmt

Diff for: .github/workflows/run-unit-tests.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
# Split the test and bench caches, the have different debug settings
5454
key: "test"
5555

56-
- name: Install Rust nightly
56+
- name: Install Rust
5757
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
58-
run: rustup toolchain install nightly-2024-07-10
58+
run: rustup toolchain install 1.81.0
5959

60-
- name: Set Rust nightly as default
60+
- name: Set Rust as default
6161
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
62-
run: rustup default nightly-2024-07-10
62+
run: rustup default 1.81.0
6363

6464
- name: Run Tests
6565
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'

Diff for: .github/workflows/test-gpu.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ jobs:
8383
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
8484
run: find /usr -name "libnvrtc*" && find /usr -name libcuda.so
8585

86-
- name: Install Rust nightly
86+
- name: Install Rust
8787
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
8888
uses: dtolnay/rust-toolchain@master
8989
with:
90-
toolchain: nightly
90+
toolchain: 1.81.0
9191

9292
- name: GPU Dependent Tests
9393
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'

0 commit comments

Comments
 (0)