From 0b5b4577cd9e475dc4e45f5e1cc2297c44dd08bd Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Tue, 26 Aug 2025 22:34:12 +0000 Subject: [PATCH] Update .gitea/workflows/compile.yaml --- .gitea/workflows/compile.yaml | 63 +++++++++++++++++------------------ 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/compile.yaml b/.gitea/workflows/compile.yaml index b4beffe..52f4880 100644 --- a/.gitea/workflows/compile.yaml +++ b/.gitea/workflows/compile.yaml @@ -1,4 +1,4 @@ -name: Build Tauri Linux ELF +name: Build Tauri App on: push: @@ -7,14 +7,19 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + target: linux + - os: windows-latest + target: windows steps: - # 1. Checkout repository - name: Checkout repository uses: actions/checkout@v3 - # 2. Install Rust toolchain - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -22,13 +27,12 @@ jobs: profile: minimal override: true - # 3. Install Linux dependencies for Tauri + AppImage + # Linux setup - name: Install Linux dependencies + if: matrix.target == 'linux' run: | sudo apt-get update sudo apt-get install -y \ - libfuse2 \ - patchelf \ libssl-dev \ libgtk-3-dev \ libayatana-appindicator3-dev \ @@ -39,40 +43,35 @@ jobs: pkg-config \ xdg-utils - # 4. Install Tauri CLI + # Windows setup + - name: Install Node.js (needed for frontend) + if: matrix.target == 'windows' + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install Tauri CLI run: cargo install tauri-cli - # 5. Build Tauri release binary + bundles - - name: Build Tauri release + - name: Build Tauri App run: | cd src-tauri cargo tauri build - # 6. Upload raw ELF binary - - name: Upload ELF binary + # Upload artifacts + - name: Upload Linux packages + if: matrix.target == 'linux' uses: actions/upload-artifact@v3 with: - name: tauri-elf-binary - path: src-tauri/target/release/bytechat-desktop + name: tauri-linux-packages + path: | + src-tauri/target/release/bytechat-desktop + src-tauri/target/release/bundle/deb/*.deb + src-tauri/target/release/bundle/rpm/*.rpm - # 7. Upload Debian package - - name: Upload .deb package + - name: Upload Windows exe + if: matrix.target == 'windows' uses: actions/upload-artifact@v3 with: - name: tauri-deb - path: src-tauri/target/release/bundle/deb/*.deb - - # 8. Upload RPM package - - name: Upload .rpm package - uses: actions/upload-artifact@v3 - with: - name: tauri-rpm - path: src-tauri/target/release/bundle/rpm/*.rpm - - # 9. Upload AppImage package - - name: Upload AppImage - uses: actions/upload-artifact@v3 - with: - name: tauri-appimage - path: src-tauri/target/release/bundle/appimage/*.AppImage + name: tauri-windows-exe + path: src-tauri/target/release/bundle/msi/*.exe