mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-08-28 19:47:54 +08:00
chore: 指定项目 rust 版本为 1.93.0,调整 ci 以读取配置 (#626)
This commit is contained in:
@@ -75,17 +75,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: web-build
|
name: web-build
|
||||||
path: web/build
|
path: web/build
|
||||||
- name: Cache dependencies
|
- name: Read Toolchain Version
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: SebRollen/toml-action@v1.2.0
|
||||||
- name: Install musl-tools
|
id: read_rust_toolchain
|
||||||
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
|
with:
|
||||||
if: contains(matrix.platform.target, 'musl')
|
file: rust-toolchain.toml
|
||||||
|
field: toolchain.channel
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
uses: houseabsolute/actions-rust-cross@v0
|
uses: houseabsolute/actions-rust-cross@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
target: ${{ matrix.platform.target }}
|
target: ${{ matrix.platform.target }}
|
||||||
toolchain: stable
|
toolchain: ${{ steps.read_rust_toolchain.outputs.value }}
|
||||||
args: "--locked --release"
|
args: "--locked --release"
|
||||||
strip: true
|
strip: true
|
||||||
- name: Package as archive
|
- name: Package as archive
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: rustup default stable && rustup component add clippy && rustup component add rustfmt --toolchain nightly
|
- run: rustup install && rustup component add rustfmt --toolchain nightly
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[toolchain]
|
||||||
|
channel = "1.93.0"
|
||||||
|
components = ["clippy"]
|
||||||
Reference in New Issue
Block a user