ci: switch to actively maintained rust toolchain action

This commit is contained in:
Wez Furlong
2023-03-30 06:57:14 -07:00
parent 0d431d1f8c
commit 4d5ca8909c
4 changed files with 4 additions and 27 deletions
+1 -7
View File
@@ -55,13 +55,7 @@ jobs:
fi
ln -s /usr/local/git/bin/git /usr/local/bin/git
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "stable"
override: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
+1 -6
View File
@@ -29,12 +29,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "nightly"
override: true
components: "rustfmt"
uses: dtolnay/rust-toolchain@stable
- name: Rust formatting
run: cargo +nightly fmt --all -- --check
- name: Install stylua
+1 -7
View File
@@ -42,13 +42,7 @@ jobs:
shell: bash
run: "dnf install -y git"
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "stable"
override: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- name: workaround git permission guff
run: git config --global --add safe.directory /__w/kumomta/kumomta
+1 -7
View File
@@ -54,13 +54,7 @@ jobs:
shell: bash
run: "apt update"
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "stable"
override: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- name: workaround git permission guff
run: git config --global --add safe.directory /__w/kumomta/kumomta