54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: Build Tauri Linux ELF
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# 1. Checkout repository
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
# 2. Install Rust toolchain
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
|
|
# 3. Install Linux dependencies for Tauri
|
|
- name: Install Linux dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
libgtk-3-dev \
|
|
libayatana-appindicator3-dev \
|
|
librsvg2-dev \
|
|
webkit2gtk-4.1 \
|
|
build-essential \
|
|
curl \
|
|
pkg-config
|
|
|
|
# 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
|
|
|
|
# 7. Upload ELF binary as artifact
|
|
- name: Upload ELF binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tauri-elf-binary
|
|
path: src-tauri/target/release/<your-binary-name>
|