Skip to content

feat: prepare v0.3.0 release #4

feat: prepare v0.3.0 release

feat: prepare v0.3.0 release #4

Workflow file for this run

name: Quality
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-macos:
name: Build macOS Preview (${{ matrix.label }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
label: Apple Silicon
artifact_suffix: macos-arm64
- runner: macos-15-intel
label: Intel
artifact_suffix: macos-x64
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare scripts
run: chmod +x scripts/*.sh
- name: Show toolchain
run: |
swift --version
xcodebuild -version
- name: Build debug app
run: ./scripts/build-dev-app.sh
- name: Verify debug app bundle
run: |
test -x "dist/Lime Pet.app/Contents/MacOS/LimePet"
test -f "dist/Lime Pet.app/Contents/Info.plist"
- name: Build release package preview
run: ./scripts/package-release.sh --version "0.0.0-ci" --build-number "${{ github.run_number }}" --artifact-suffix "${{ matrix.artifact_suffix }}"
- name: Upload macOS preview artifact
if: success()
uses: actions/upload-artifact@v6
with:
name: lime-pet-${{ matrix.artifact_suffix }}-preview
path: |
dist/release/*.zip
dist/release/*.sha256
build-windows:
name: Build Windows Companion
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "WindowsPet/package-lock.json"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Show toolchain
run: |
node -v
npm -v
cargo -V
- name: Install Windows companion dependencies
working-directory: WindowsPet
run: npm ci
- name: Build Windows web assets
working-directory: WindowsPet
run: npm run build
- name: Build Windows installer preview
working-directory: WindowsPet
run: npm run tauri build
- name: Upload Windows preview artifact
if: success()
uses: actions/upload-artifact@v6
with:
name: lime-pet-windows-preview
path: |
WindowsPet/src-tauri/target/release/bundle/nsis/*.exe