ci: revert back to rustup command to install nightly rustfmt

This commit is contained in:
uncenter 2024-02-11 08:59:00 -05:00
parent 8649d13835
commit df7ad3b67c
No known key found for this signature in database
3 changed files with 8 additions and 15 deletions

View file

@ -13,11 +13,9 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
run: |
rustup toolchain install stable --profile minimal
rustup component add clippy
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
@ -31,10 +29,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
run: |
rustup toolchain install stable --profile minimal
rustup component add rustfmt --toolchain nightly
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

View file

@ -29,9 +29,7 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
run: rustup toolchain install stable --profile minimal
- name: Add aarch64 target
if: contains(fromJson('["aarch64-unknown-linux-gnu", "aarch64-apple-darwin", "aarch64-pc-windows-msvc"]'), matrix.target)

View file

@ -19,9 +19,7 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
run: rustup toolchain install stable --profile minimal
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2