Fix Linux build: use Ubuntu 22.04 Docker container
Some checks failed
Build / build-linux (push) Failing after 36s
Build / build-windows (push) Successful in 9m30s

This commit is contained in:
2026-01-23 20:40:19 +11:00
parent 95256f5570
commit cb93187c5b

View File

@@ -45,30 +45,34 @@ jobs:
path: src-tauri/target/release/bundle/msi/*.msi
build-linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Install base dependencies
run: |
apt-get update
apt-get install -y git curl wget ca-certificates gnupg
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libjavascriptcoregtk-4.0-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libsoup2.4-dev
apt-get install -y libwebkit2gtk-4.0-dev libjavascriptcoregtk-4.0-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libsoup2.4-dev build-essential pkg-config
- name: Install dependencies (root)
run: npm install
@@ -78,7 +82,9 @@ jobs:
run: npm install
- name: Build Tauri app
run: npm run tauri build
run: |
. "$HOME/.cargo/env"
npm run tauri build
- name: Upload AppImage
uses: actions/upload-artifact@v3