Update .gitea/workflows/compile.yaml
Some checks failed
Build Tauri App (Linux + Windows exe) / build (push) Failing after 7m23s
Some checks failed
Build Tauri App (Linux + Windows exe) / build (push) Failing after 7m23s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Build Tauri App
|
||||
name: Build Tauri App (Linux + Windows exe)
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -7,14 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
target: linux
|
||||
- os: windows-latest
|
||||
target: windows
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -27,12 +20,11 @@ jobs:
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
# Linux setup
|
||||
- name: Install Linux dependencies
|
||||
if: matrix.target == 'linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
mingw-w64 \
|
||||
libssl-dev \
|
||||
libgtk-3-dev \
|
||||
libayatana-appindicator3-dev \
|
||||
@@ -43,35 +35,29 @@ jobs:
|
||||
pkg-config \
|
||||
xdg-utils
|
||||
|
||||
# Windows setup
|
||||
- name: Install Node.js (needed for frontend)
|
||||
if: matrix.target == 'windows'
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- 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 Tauri App
|
||||
- name: Build Linux + Windows targets
|
||||
run: |
|
||||
cd src-tauri
|
||||
cargo tauri build
|
||||
cargo tauri build --target deb,rpm
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
|
||||
# Upload artifacts
|
||||
- name: Upload Linux packages
|
||||
if: matrix.target == 'linux'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: tauri-linux-packages
|
||||
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
|
||||
if: matrix.target == 'windows'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: tauri-windows-exe
|
||||
path: src-tauri/target/release/bundle/msi/*.exe
|
||||
path: src-tauri/target/x86_64-pc-windows-gnu/release/bytechat-desktop.exe
|
||||
|
||||
Reference in New Issue
Block a user