From a1be636a8c00bc1c077cd37fa6a83f5cc8e5e17f Mon Sep 17 00:00:00 2001 From: Tickbase Date: Sat, 23 May 2026 04:06:05 +0200 Subject: [PATCH] test build --- .github/workflows/test-build.yml | 70 ++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/test-build.yml diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 0000000..54f16a9 --- /dev/null +++ b/.github/workflows/test-build.yml @@ -0,0 +1,70 @@ +name: 'Test Build' + +on: + workflow_dispatch: + +jobs: + build-tauri: + permissions: + contents: write + strategy: + fail-fast: false + matrix: + include: + - platform: 'ubuntu-22.04' + args: '' + + runs-on: ${{ matrix.platform }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: 'npm' + + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Rust cache + uses: swatinem/rust-cache@v2 + with: + workspaces: './src-tauri -> target' + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + libappindicator3-dev \ + librsvg2-dev \ + patchelf \ + build-essential \ + curl \ + wget \ + file \ + libssl-dev \ + libgtk-3-dev + + - name: Install frontend dependencies + run: npm ci + + - name: Build Tauri app + run: npm run tauri build + env: + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: linux-build + path: | + src-tauri/target/release/bundle/deb/*.deb + src-tauri/target/release/bundle/appimage/*.AppImage + if-no-files-found: error