From ac72cc6d6e9358ded83cbd01e24b655a0eaff9ca Mon Sep 17 00:00:00 2001 From: huangjianwu Date: Thu, 7 May 2026 14:30:07 +0800 Subject: [PATCH] =?UTF-8?q?ci(tauri):=20=E6=A1=8C=E9=9D=A2=E7=AB=AF?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=8E=BB=E6=8E=89=20Linux=EF=BC=8C=E5=8F=AA?= =?UTF-8?q?=E4=BF=9D=E7=95=99=20macOS=20+=20Windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tauri Linux 构建 (ubuntu-22.04, x86_64-unknown-linux-gnu) 在 v2.1.x 这几次发版上 持续 17m+ 才完成,相比 macOS / Windows 更慢,且没有面向 Linux 桌面端用户的实际分发渠道。 直接从 matrix 里去掉。 清理: - matrix 删除 ubuntu-22.04 条目 - 'Install Linux Dependencies' step(仅 ubuntu 触发)整段移除 - artifact 收集步里的 .deb / .AppImage 两条 find 命令移除 Linux 用户继续可以走 Docker 镜像 (ghcr.io/jefferyhcool/bilinote),那条线没变。 Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/main.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbc57b2..6a61280 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,8 +13,6 @@ jobs: include: - platform: macos-latest target: universal-apple-darwin - - platform: ubuntu-22.04 - target: x86_64-unknown-linux-gnu - platform: windows-latest target: x86_64-pc-windows-msvc @@ -24,13 +22,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 - # Linux 系统依赖(Tauri 需要) - - name: Install Linux Dependencies - if: matrix.platform == 'ubuntu-22.04' - run: | - sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - # 设置 Python 环境(带 pip 缓存) - name: Set up Python uses: actions/setup-python@v5 @@ -103,9 +94,6 @@ jobs: # Windows: .msi, .exe (NSIS) find "$BUNDLE_DIR" -name "*.msi" -exec cp {} release-artifacts/ \; 2>/dev/null || true find "$BUNDLE_DIR/nsis" -name "*.exe" -exec cp {} release-artifacts/ \; 2>/dev/null || true - # Linux: .deb, .AppImage - find "$BUNDLE_DIR" -name "*.deb" -exec cp {} release-artifacts/ \; 2>/dev/null || true - find "$BUNDLE_DIR" -name "*.AppImage" -exec cp {} release-artifacts/ \; 2>/dev/null || true echo "=== Collected artifacts ===" ls -lh release-artifacts/