mirror of
https://github.com/VirtualHotBar/NetMount.git
synced 2026-06-03 01:42:52 +08:00
ci: 使用原生 ARM64 runner 并修复缓存 key
- Windows ARM64: 从交叉编译改为使用 windows-11-arm runner - Linux 缓存: 统一 key 格式为 binaries-x86_64-unknown-linux-gnu-... - 移除不必要的 targets 配置
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -130,7 +130,7 @@ jobs:
|
||||
src-tauri/binaries/openlist
|
||||
src-tauri/binaries/rclone-x86_64-unknown-linux-gnu
|
||||
src-tauri/binaries/openlist-x86_64-unknown-linux-gnu
|
||||
key: binaries-linux-x86_64-${{ env.RCLONE_VERSION }}-${{ env.OPENLIST_VERSION }}
|
||||
key: binaries-x86_64-unknown-linux-gnu-${{ env.RCLONE_VERSION }}-${{ env.OPENLIST_VERSION }}
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
@@ -224,9 +224,9 @@ jobs:
|
||||
target: 'x86_64-pc-windows-msvc'
|
||||
args: ''
|
||||
arch: 'x86_64'
|
||||
- platform: 'windows-latest'
|
||||
- platform: 'windows-11-arm'
|
||||
target: 'aarch64-pc-windows-msvc'
|
||||
args: '--target aarch64-pc-windows-msvc'
|
||||
args: ''
|
||||
arch: 'aarch64'
|
||||
runs-on: ${{ matrix.platform }}
|
||||
timeout-minutes: 30
|
||||
@@ -243,7 +243,7 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || matrix.target == 'aarch64-pc-windows-msvc' && 'aarch64-pc-windows-msvc' || '' }}
|
||||
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
||||
|
||||
# Rust 缓存 - 按目标平台分离缓存
|
||||
- name: Cache Rust dependencies
|
||||
|
||||
Reference in New Issue
Block a user