Skip to content

fix: align SystemInfo frontend struct with backend (platform, cpu_cor… #63

fix: align SystemInfo frontend struct with backend (platform, cpu_cor…

fix: align SystemInfo frontend struct with backend (platform, cpu_cor… #63

Workflow file for this run

name: Build Nexus Desktop Installer
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
ext: msi
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
ext: deb
- os: macos-latest
target: aarch64-apple-darwin
ext: dmg
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }},wasm32-unknown-unknown
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Build WASM frontend
run: wasm-pack build frontend --target web --out-dir ../dist --out-name nexus --no-opt
- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2"
- name: Build Tauri app
run: cargo tauri build --target ${{ matrix.target }}
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: nexus-${{ matrix.os }}-${{ matrix.target }}
path: target/${{ matrix.target }}/release/bundle/${{ matrix.ext }}/*
if-no-files-found: warn