diff --git a/.github/workflows/centos7.yml b/.github/workflows/centos7.yml index 631978b0..66f644c2 100644 --- a/.github/workflows/centos7.yml +++ b/.github/workflows/centos7.yml @@ -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: diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index ef7d618d..742a9693 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -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 diff --git a/.github/workflows/rocky.yml b/.github/workflows/rocky.yml index f004cdab..aca71510 100644 --- a/.github/workflows/rocky.yml +++ b/.github/workflows/rocky.yml @@ -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 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3c44b906..9f31dfa4 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -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