mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-27 00:36:13 +00:00
ci: switch to actively maintained rust toolchain action
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user