ci: 移除 Linux ARM64 构建

ARM 模拟器构建太慢(1小时+),暂时移除 Linux ARM64 支持。
保留 macOS (ARM64/x64)、Windows (x64)、Linux (x64)。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
coso
2025-12-29 16:10:57 +08:00
co-authored by Claude Opus 4.5
parent 17780b3a03
commit 63f347f060
-80
View File
@@ -88,7 +88,6 @@ jobs:
- **macOS (Intel)**: `proxycast_*_x64.dmg`
- **Windows (64-bit)**: `proxycast_*_x64-setup.exe`
- **Linux x64**: `proxycast_*_amd64.deb` / `proxycast_*_amd64.AppImage`
- **Linux ARM64**: `proxycast_*_arm64.deb` / `proxycast_*_arm64.AppImage`
### macOS 首次安装
@@ -103,82 +102,3 @@ jobs:
releaseDraft: false
prerelease: false
args: --target ${{ matrix.target }}
# Linux ARM64 使用模拟 ARM runner 构建
build-linux-arm64:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache rust build artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
cache-on-failure: true
- name: Build app in ARM64 emulator
uses: pguyot/arm-runner-action@v2.6.5
with:
base_image: https://dietpi.com/downloads/images/DietPi_RPi5-ARMv8-Bookworm.img.xz
cpu: cortex-a72
bind_mount_repository: true
image_additional_mb: 10240
optimize_image: no
commands: |
# Prevent Rust from complaining about $HOME not matching eid home
export HOME=/root
# Workaround to CI worker being stuck on Updating crates.io index
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
# Install setup prerequisites
apt-get update -y --allow-releaseinfo-change
apt-get autoremove -y
apt-get install -y --no-install-recommends --no-install-suggests \
curl \
libwebkit2gtk-4.1-dev \
build-essential \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf \
libfuse2 \
file
# Install Rust
curl https://sh.rustup.rs -sSf | sh -s -- -y
. "$HOME/.cargo/env"
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_20.x | bash
apt-get install -y nodejs
# Install frontend dependencies
npm ci
# Build the application
npm run tauri build -- --verbose
- name: Get app version
run: echo "APP_VERSION=$(jq -r .version src-tauri/tauri.conf.json)" >> $GITHUB_ENV
- name: Upload deb bundle to release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.version || github.ref_name }}
files: |
src-tauri/target/release/bundle/deb/*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload AppImage bundle to release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.version || github.ref_name }}
files: |
src-tauri/target/release/bundle/appimage/*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}