diff --git a/.gitea/workflows/compile.yaml b/.gitea/workflows/compile.yaml index 5942a4a..1b62293 100644 --- a/.gitea/workflows/compile.yaml +++ b/.gitea/workflows/compile.yaml @@ -1,4 +1,4 @@ -name: Build Tauri App +name: Build Tauri Linux ELF on: push: @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - # 1. Checkout repo + # 1. Checkout repository - name: Checkout repository uses: actions/checkout@v3 - # 2. Install Rust + # 2. Install Rust toolchain - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -22,7 +22,7 @@ jobs: profile: minimal override: true - # 3. Install Linux dependencies + # 3. Install Linux dependencies for Tauri - name: Install Linux dependencies run: | sudo apt-get update @@ -30,37 +30,24 @@ jobs: libgtk-3-dev \ libayatana-appindicator3-dev \ librsvg2-dev \ - libssl-dev \ - libwebkit2gtk-4.1-dev \ + webkit2gtk-4.1 \ build-essential \ curl \ - pkg-config \ - squashfs-tools \ - patchelf + pkg-config - # 4. Build Tauri release bundle (AppImage/DEB/RPM) + # 4. Install Tauri CLI + - name: Install Tauri CLI + run: cargo install tauri-cli + + # 6. Build Tauri release binary - name: Build Tauri release run: | cd src-tauri cargo tauri build --release - # 5. Upload AppImage as artifact - - name: Upload AppImage + # 7. Upload ELF binary as artifact + - name: Upload ELF binary uses: actions/upload-artifact@v3 with: - name: bytechat-appimage - path: src-tauri/target/release/bundle/appimage/*.AppImage - - # 6. Optionally upload DEB and RPM - - name: Upload DEB - uses: actions/upload-artifact@v3 - with: - name: bytechat-deb - path: src-tauri/target/release/bundle/deb/*.deb - - - name: Upload RPM - uses: actions/upload-artifact@v3 - with: - name: bytechat-rpm - path: src-tauri/target/release/bundle/rpm/*.rpm - + name: tauri-elf-binary + path: src-tauri/target/release/