Use rust action that handles rust-toolchain.toml files.

This commit is contained in:
Alejandro Cabeza Romero 2026-05-08 13:35:51 +02:00
parent 2c0344e6d2
commit e8d3a4e950
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
2 changed files with 3 additions and 4 deletions

View File

@ -16,14 +16,13 @@ jobs:
# Stable toolchain for building and clippy, version and components from rust-toolchain.toml.
- name: Install Rust Toolchain
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # Version 1.0.6
uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # Version 1.16.0
# Nightly toolchain for rustfmt only — nightly is required for formatting features not yet stable.
- name: Install Nightly Toolchain (fmt)
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # Version 1.0.6
uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # Version 1.16.0
with:
toolchain: nightly-2026-02-28
profile: minimal
components: rustfmt
- name: Cache Cargo artifacts

View File

@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 # Version 4.2.2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # Version 1.0.6
uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # Version 1.16.0
- name: Cache Cargo artifacts
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # Version 4.2.3