Update .gitea/workflows/compile.yaml
Some checks failed
Build Tauri App (Linux + Windows exe) / build (push) Failing after 7m23s

This commit is contained in:
2025-08-26 22:35:28 +00:00
parent 0b5b4577cd
commit b8028df6aa

View File

@@ -1,4 +1,4 @@
name: Build Tauri App name: Build Tauri App (Linux + Windows exe)
on: on:
push: push:
@@ -7,14 +7,7 @@ on:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: ubuntu-latest
target: linux
- os: windows-latest
target: windows
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -27,12 +20,11 @@ jobs:
profile: minimal profile: minimal
override: true override: true
# 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 \
mingw-w64 \
libssl-dev \ libssl-dev \
libgtk-3-dev \ libgtk-3-dev \
libayatana-appindicator3-dev \ libayatana-appindicator3-dev \
@@ -43,35 +35,29 @@ jobs:
pkg-config \ pkg-config \
xdg-utils xdg-utils
# Windows setup - name: Add Windows Rust target
- name: Install Node.js (needed for frontend) run: rustup target add x86_64-pc-windows-gnu
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
- name: Build Tauri App - name: Build Linux + Windows targets
run: | run: |
cd src-tauri 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 - name: Upload Linux packages
if: matrix.target == 'linux'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: tauri-linux-packages name: tauri-linux
path: | path: |
src-tauri/target/release/bytechat-desktop src-tauri/target/release/bytechat-desktop
src-tauri/target/release/bundle/deb/*.deb src-tauri/target/release/bundle/deb/*.deb
src-tauri/target/release/bundle/rpm/*.rpm src-tauri/target/release/bundle/rpm/*.rpm
- name: Upload Windows exe - name: Upload Windows exe
if: matrix.target == 'windows'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: tauri-windows-exe 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