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