From cb93187c5b84c849cc28814ac6a690ac647c540c Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 23 Jan 2026 20:40:19 +1100 Subject: [PATCH] Fix Linux build: use Ubuntu 22.04 Docker container --- .gitea/workflows/build.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 35204d4..e462836 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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