replace install rust toolchain command with a maintained github action

This commit is contained in:
Salman Mohammed
2025-01-17 06:21:14 -05:00
parent 8c4731cc89
commit 5ff918fb45
2 changed files with 6 additions and 14 deletions
+4 -8
View File
@@ -20,12 +20,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo fmt
run: cargo fmt --check
@@ -49,12 +47,10 @@ jobs:
run: |
gnome-keyring-daemon --components=secrets --daemonize --unlock <<< 'foobar'
- name: Set up Rust
uses: actions-rs/toolchain@v1
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
override: true
- name: Cache Cargo Registry
uses: actions/cache@v3
+2 -6
View File
@@ -36,17 +36,13 @@ jobs:
target-suffix: unknown-linux-gnu
- os: macos-latest
target-suffix: apple-darwin
## TODO: Remove when we can fix this. Skip ARM64 builds on Ubuntu for now
#exclude:
# - os: ubuntu-latest
# architecture: aarch64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: ${{ matrix.architecture }}-${{ matrix.target-suffix }}