Skip to content

Commit aa182a0

Browse files
committed
ci: 更新 GitHub Actions 中的 Rust 工具链配置
将 Rust 工具链配置从 actions-rs/toolchain 更新为 dtolnay/rust-toolchain,简化配置并提高可维护性
1 parent 5391cc9 commit aa182a0

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/backend.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626

2727
- name: Setup Rust
28-
uses: actions-rs/toolchain@v1
29-
with:
30-
profile: minimal
31-
toolchain: stable
32-
override: true
28+
uses: dtolnay/rust-toolchain@stable
3329

3430
- name: Cache Rust dependencies
3531
uses: actions/cache@v3
@@ -90,12 +86,10 @@ jobs:
9086
- uses: actions/checkout@v4
9187

9288
- name: Setup Rust
93-
uses: actions-rs/toolchain@v1
89+
uses: dtolnay/rust-toolchain@stable
9490
with:
95-
profile: minimal
9691
toolchain: stable
97-
target: ${{ matrix.target.target }}
98-
override: true
92+
targets: ${{ matrix.target.target }}
9993

10094
- name: Install cross compile tools (Linux ARM64 only)
10195
if: matrix.target.target == 'aarch64-unknown-linux-gnu'

0 commit comments

Comments
 (0)