57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- os: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
name: Windows x64
|
|
|
|
runs-on: ${{ matrix.platform.os }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: ${{ matrix.platform.target }}
|
|
|
|
|
|
- name: Rust cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: './src-tauri -> target'
|
|
|
|
- name: Install Tauri CLI
|
|
run: cargo install tauri-cli --version "^2.0.0" --locked
|
|
|
|
- name: Build Tauri app
|
|
working-directory: ./src-tauri
|
|
run: cargo tauri build --verbose
|
|
|
|
|
|
- name: Upload artifacts (Windows)
|
|
if: matrix.platform.os == 'windows-latest'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: UPX-Tools-${{ matrix.platform.name }}
|
|
path: |
|
|
src-tauri/target/release/bundle/msi/*.msi
|
|
src-tauri/target/release/bundle/nsis/*.exe
|
|
if-no-files-found: warn
|
|
|