stahl/.github/workflows/ci.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

49 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nix:
name: nix flake check (${{ matrix.system }})
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
system: x86_64-linux
- os: macos-latest
system: aarch64-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
accept-flake-config = true
- name: nix fmt --check
run: nix fmt -- --check .
- name: nix flake check
run: nix flake check -L
- name: nix build (release)
run: nix build .#stahl -L
- name: smoke-test the built binary
run: file result/bin/stahl
# Outside `nix flake check`: these need a login session, not a sandbox.
- name: end-to-end tests
if: matrix.os == 'macos-latest'
run: nix develop -c cargo test --test e2e