CI / lint (push) Failing after 16s
CI / test (push) Skipped
CI / build (push) Skipped
CI / e2e (push) Skipped
CI / security (push) Successful in 18s
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
- frontend/index.html : splash #boot-splash 100% inline (CSS+JS), scripts CDN en defer pour ne pas bloquer le premier paint - frontend/js/app.js : signale le boot terminé via __OBSIGATE_BOOTED (try/finally) - desktop/src/main.rs : met à jour le statut du splash avant la redirection vers le backend - ci: stage backend/ + frontend/ sous desktop/ avant tauri build (resources backend/** et frontend/**) dans desktop-build.yml et build-linux.sh - desktop/gen/schemas/windows-schema.json : régénéré (permissions store/updater) - docs: README, README.fr, ROADMAP
99 lines
3.0 KiB
YAML
99 lines
3.0 KiB
YAML
name: Desktop Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'desktop/**'
|
|
- 'frontend/**'
|
|
- 'backend/**'
|
|
workflow_dispatch: # permet de lancer manuellement
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: [self-hosted, windows, desktop] # runner sur ta machine Windows
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust
|
|
run: rustup default stable && rustup update
|
|
|
|
- name: Setup Tauri CLI
|
|
run: cargo install tauri-cli --version "^2.0"
|
|
|
|
- name: Setup Python 3.11 embed
|
|
run: |
|
|
curl -L -o python-embed.zip "https://www.python.org/ftp/python/3.11.15/python-3.11.15-embed-amd64.zip"
|
|
powershell Expand-Archive -Path python-embed.zip -DestinationPath desktop/python-embed
|
|
echo import site >> desktop/python-embed/python311._pth
|
|
cd desktop/python-embed
|
|
./python.exe -m pip install --no-cache-dir -r ../../backend/requirements.txt
|
|
|
|
- name: Stage backend + frontend for bundle
|
|
working-directory: desktop
|
|
run: |
|
|
xcopy /E /I /Q /Y "..\backend" "backend"
|
|
xcopy /E /I /Q /Y "..\frontend" "frontend"
|
|
|
|
- name: Build MSI
|
|
working-directory: desktop
|
|
run: cargo tauri build --bundles msi
|
|
|
|
- name: Upload MSI artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: obsigate-windows-msi
|
|
path: desktop/target/release/bundle/msi/*.msi
|
|
retention-days: 30
|
|
|
|
- name: Publish to Gitea Release
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
run: |
|
|
$MSI = Get-ChildItem desktop/target/release/bundle/msi/*.msi | Select-Object -First 1
|
|
echo "MSI ready: $MSI"
|
|
|
|
build-linux:
|
|
runs-on: [self-hosted, linux, desktop] # runner sur une machine Linux
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust
|
|
run: rustup default stable && rustup update
|
|
|
|
- name: Install system deps
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev
|
|
|
|
- name: Setup Tauri CLI
|
|
run: cargo install tauri-cli --version "^2.0"
|
|
|
|
- name: Setup Python venv
|
|
run: |
|
|
python3 -m venv desktop/python-embed/venv
|
|
source desktop/python-embed/venv/bin/activate
|
|
pip install -r backend/requirements.txt
|
|
|
|
- name: Stage backend + frontend for bundle
|
|
working-directory: desktop
|
|
run: |
|
|
cp -r ../backend backend
|
|
cp -r ../frontend frontend
|
|
|
|
- name: Build AppImage
|
|
working-directory: desktop
|
|
run: cargo tauri build --bundles appimage
|
|
|
|
- name: Build deb
|
|
working-directory: desktop
|
|
run: cargo tauri build --bundles deb
|
|
|
|
- name: Upload Linux artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: obsigate-linux
|
|
path: |
|
|
desktop/target/release/bundle/appimage/*.AppImage
|
|
desktop/target/release/bundle/deb/*.deb
|
|
retention-days: 30
|