Some checks failed
Build Tauri App (Linux + Windows exe) / build (push) Failing after 7m23s
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: Build Tauri App (Linux + Windows exe)
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
|
|
- name: Install Linux dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
mingw-w64 \
|
|
libssl-dev \
|
|
libgtk-3-dev \
|
|
libayatana-appindicator3-dev \
|
|
librsvg2-dev \
|
|
webkit2gtk-4.1 \
|
|
build-essential \
|
|
curl \
|
|
pkg-config \
|
|
xdg-utils
|
|
|
|
- name: Add Windows Rust target
|
|
run: rustup target add x86_64-pc-windows-gnu
|
|
|
|
- name: Install Tauri CLI
|
|
run: cargo install tauri-cli
|
|
|
|
- name: Build Linux + Windows targets
|
|
run: |
|
|
cd src-tauri
|
|
cargo tauri build --target deb,rpm
|
|
cargo build --release --target x86_64-pc-windows-gnu
|
|
|
|
- name: Upload Linux packages
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tauri-linux
|
|
path: |
|
|
src-tauri/target/release/bytechat-desktop
|
|
src-tauri/target/release/bundle/deb/*.deb
|
|
src-tauri/target/release/bundle/rpm/*.rpm
|
|
|
|
- name: Upload Windows exe
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tauri-windows-exe
|
|
path: src-tauri/target/x86_64-pc-windows-gnu/release/bytechat-desktop.exe
|