CI/CD completed ready for more testing. #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GUI Tauri CI | |
on: | |
push: | |
paths: | |
- 'lattice-v3/gui/lattice-core/**' | |
- '.github/workflows/gui-tauri.yml' | |
- 'lattice-v3/core/**' | |
- 'lattice-v3/wallet/**' | |
- 'lattice-v3/node/**' | |
pull_request: | |
paths: | |
- 'lattice-v3/gui/lattice-core/**' | |
- '.github/workflows/gui-tauri.yml' | |
jobs: | |
build: | |
name: Build (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 50 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
defaults: | |
run: | |
working-directory: lattice-v3/gui/lattice-core | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
cache-dependency-path: lattice-v3/gui/lattice-core/package-lock.json | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install Linux dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libgtk-3-dev \ | |
libwebkit2gtk-4.1-dev \ | |
libayatana-appindicator3-dev \ | |
librsvg2-dev \ | |
patchelf \ | |
libssl-dev | |
- name: Install frontend deps | |
run: npm ci | |
- name: Build Tauri app | |
run: npm run tauri:build | |
- name: Upload bundles | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lattice-core-tauri-${{ matrix.os }} | |
path: | | |
lattice-v3/target/release/bundle/** | |
if-no-files-found: warn | |