ci: 使用原生 ARM64 runner 并修复缓存 key

- Windows ARM64: 从交叉编译改为使用 windows-11-arm runner
- Linux 缓存: 统一 key 格式为 binaries-x86_64-unknown-linux-gnu-...
- 移除不必要的 targets 配置
This commit is contained in:
VirtualHotBar
2026-02-18 13:20:41 +08:00
parent 416ece0bf8
commit 26ea0401fe

View File

@@ -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