浏览代码

ci: replace unmaintained actions-rs/toolchain@v1

Philipp Schuster 1 年之前
父节点
当前提交
2f7e395284
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      .github/workflows/_build-rust.yml

+ 3 - 5
.github/workflows/_build-rust.yml

@@ -62,14 +62,12 @@ jobs:
     steps:
       - name: Check out
         uses: actions/checkout@v4
-      - name: Install Rust toolchain
-        uses: actions-rs/toolchain@v1
+      - name: Setup Rust toolchain
+        uses: dtolnay/rust-toolchain@stable
         with:
-          profile: minimal
           toolchain: ${{ inputs.rust-version }}
-          override: true
+          targets: ${{ inputs.rust-target }}
           components: clippy, rustfmt
-          target: ${{ inputs.rust-target }}
       - name: Set up cargo cache
         uses: actions/cache@v3
         continue-on-error: false