stahl/.github/workflows/release.yml
Markus Zoppelt 03335c2c5b ci: build releases natively, run the end-to-end tests
Replace tauri-action with cargo-bundle for the macOS and Debian packages and a
plain archive for Windows. Run tests/e2e.rs on macOS outside the Nix sandbox,
which has no login session. Remove the frontend dependency tracking.
2026-11-05 22:47:46 +01:00

71 lines
2.1 KiB
YAML

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
publish:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest # Apple Silicon
- platform: ubuntu-latest
- platform: windows-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v7
- name: install Linux system dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libvulkan1 libwayland-dev libx11-xcb-dev libxkbcommon-x11-dev libfontconfig-dev libfreetype-dev cmake
# rustup reads the version from rust-toolchain.toml.
- name: install the Rust toolchain
run: rustup show active-toolchain || rustup toolchain install
- uses: Swatinem/rust-cache@v2
- name: install cargo-bundle
if: matrix.platform != 'windows-latest'
run: cargo install cargo-bundle --locked
- name: build the macOS disk image
if: matrix.platform == 'macos-latest'
run: |
cargo bundle --release
app="target/release/bundle/osx/Stahl Capital.app"
codesign --force --deep --sign - "$app"
hdiutil create -volname "Stahl Capital" -srcfolder "$app" -ov -format UDZO stahl-capital-macos-arm64.dmg
- name: build the Debian package
if: matrix.platform == 'ubuntu-latest'
run: |
cargo bundle --release --format deb
cp target/release/bundle/deb/*.deb .
- name: build the Windows archive
if: matrix.platform == 'windows-latest'
shell: pwsh
run: |
cargo build --release
Compress-Archive -Path target/release/stahl.exe -DestinationPath stahl-capital-windows-x64.zip
- uses: softprops/action-gh-release@v2
with:
name: "Stahl Capital ${{ github.ref_name }}"
body: "See the assets below to download and install."
draft: true
files: |
*.dmg
*.deb
*.zip