Update .gitea/workflows/compile.yaml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user