diff --git a/.gitea/workflows/build-linux.yml b/.gitea/workflows/build-linux.yml new file mode 100644 index 0000000..e9c5862 --- /dev/null +++ b/.gitea/workflows/build-linux.yml @@ -0,0 +1,56 @@ +name: Build Linux Packages + +on: + push: + branches: + - main + tags: + - 'v*' + pull_request: + +jobs: + build-linux: + name: Build Linux + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + targets: x86_64-unknown-linux-gnu + + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + + - name: Install Tauri Linux dependencies + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf + + - name: Install Node dependencies + run: npm ci + + - name: Build Tauri App + run: npm run tauri build + + - name: Upload Debian Package + uses: actions/upload-artifact@v4 + with: + name: iccery-linux-deb + path: src-tauri/target/release/bundle/deb/*.deb + + - name: Upload AppImage + uses: actions/upload-artifact@v4 + with: + name: iccery-linux-appimage + path: src-tauri/target/release/bundle/appimage/*.AppImage