Update .gitea/workflows/compile.yaml
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build Tauri Linux ELF
|
name: Build Tauri App
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,14 +7,19 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
target: linux
|
||||||
|
- os: windows-latest
|
||||||
|
target: windows
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 1. Checkout repository
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# 2. Install Rust toolchain
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@@ -22,13 +27,12 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
# 3. Install Linux dependencies for Tauri + AppImage
|
# Linux setup
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
|
if: matrix.target == 'linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
libfuse2 \
|
|
||||||
patchelf \
|
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libgtk-3-dev \
|
libgtk-3-dev \
|
||||||
libayatana-appindicator3-dev \
|
libayatana-appindicator3-dev \
|
||||||
@@ -39,40 +43,35 @@ jobs:
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
xdg-utils
|
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
|
- name: Install Tauri CLI
|
||||||
run: cargo install tauri-cli
|
run: cargo install tauri-cli
|
||||||
|
|
||||||
# 5. Build Tauri release binary + bundles
|
- name: Build Tauri App
|
||||||
- name: Build Tauri release
|
|
||||||
run: |
|
run: |
|
||||||
cd src-tauri
|
cd src-tauri
|
||||||
cargo tauri build
|
cargo tauri build
|
||||||
|
|
||||||
# 6. Upload raw ELF binary
|
# Upload artifacts
|
||||||
- name: Upload ELF binary
|
- name: Upload Linux packages
|
||||||
|
if: matrix.target == 'linux'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: tauri-elf-binary
|
name: tauri-linux-packages
|
||||||
path: src-tauri/target/release/bytechat-desktop
|
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 Windows exe
|
||||||
- name: Upload .deb package
|
if: matrix.target == 'windows'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: tauri-deb
|
name: tauri-windows-exe
|
||||||
path: src-tauri/target/release/bundle/deb/*.deb
|
path: src-tauri/target/release/bundle/msi/*.exe
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user