Updating inputs Tue Apr 21 06:57:58 UTC 2026 #441
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-systems | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NIX_PATH: "nixpkgs=https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz" | |
| jobs: | |
| ci: | |
| name: ci | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: wimpysworld/nothing-but-nix@v10 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: vix | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - run: nix-shell --run 'just ci' | |
| find-systems: | |
| needs: [ci] | |
| name: find-systems | |
| runs-on: ubuntu-latest | |
| outputs: | |
| nixos: ${{ steps.finder.outputs.nixos }} | |
| nixos_arm: ${{ steps.finder.outputs.nixos_arm }} | |
| darwin_arm: ${{ steps.finder.outputs.darwin_arm }} | |
| darwin_intel: ${{ steps.finder.outputs.darwin_intel }} | |
| steps: | |
| - uses: wimpysworld/nothing-but-nix@v10 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - id: finder | |
| run: | | |
| nixos=$(nix-instantiate --strict --json --eval -E '(import ./.).lib.hostsBySystem "x86_64-linux"') | |
| nixos_arm=$(nix-instantiate --strict --json --eval -E '(import ./.).lib.hostsBySystem "aarch64-linux"') | |
| darwin_arm=$(nix-instantiate --strict --json --eval -E '(import ./.).lib.hostsBySystem "aarch64-darwin"') | |
| darwin_intel=$(nix-instantiate --strict --json --eval -E '(import ./.).lib.hostsBySystem "x86_64-darwin"') | |
| echo "nixos=$nixos" | |
| echo "nixos_arm=$nixos_arm" | |
| echo "darwin_arm=$darwin_arm" | |
| echo "darwin_intel=$darwin_intel" | |
| echo "nixos=$nixos" >> $GITHUB_OUTPUT | |
| echo "nixos_arm=$nixos_arm" >> $GITHUB_OUTPUT | |
| echo "darwin_arm=$darwin_arm" >> $GITHUB_OUTPUT | |
| echo "darwin_intel=$darwin_intel" >> $GITHUB_OUTPUT | |
| x86_64-linux: | |
| name: ${{ matrix.host }} x86_64-linux | |
| needs: [find-systems] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| host: ${{ fromJSON(needs.find-systems.outputs.nixos) }} | |
| steps: | |
| - uses: wimpysworld/nothing-but-nix@v10 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: vix | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - run: nix-shell --run 'nh os build --no-nom -q --file . nixosConfigurations.${{matrix.host}}' | |
| - run: | | |
| echo "<code>$(readlink -f ./result)</code>" >> "$GITHUB_STEP_SUMMARY" | |
| aarm64-linux: | |
| name: ${{ matrix.host }} aarm64-linux | |
| needs: [find-systems] | |
| runs-on: ubuntu-24.04-arm | |
| strategy: | |
| matrix: | |
| host: ${{ fromJSON(needs.find-systems.outputs.nixos_arm) }} | |
| steps: | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: vix | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - run: nix-shell --run 'nh os build --no-nom -q --file . nixosConfigurations.${{matrix.host}}' | |
| - run: | | |
| echo "<code>$(readlink -f ./result)</code>" >> "$GITHUB_STEP_SUMMARY" | |
| aarch64-darwin: | |
| name: ${{ matrix.host }} aarch64-darwin | |
| needs: [find-systems] | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| host: ${{ fromJSON(needs.find-systems.outputs.darwin_arm) }} | |
| steps: | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: vix | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - run: nix-shell --run 'nh os build --no-nom -q --file . darwinConfigurations.${{matrix.host}}' | |
| - run: | | |
| echo "<code>$(readlink -f ./result)</code>" >> "$GITHUB_STEP_SUMMARY" | |
| x86_64-darwin: | |
| name: ${{ matrix.host }} x86_64-darwin | |
| needs: [find-systems] | |
| runs-on: macos-15-intel | |
| strategy: | |
| matrix: | |
| host: ${{ fromJSON(needs.find-systems.outputs.darwin_intel) }} | |
| steps: | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: vix | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - run: nix-shell --run 'nh os build --no-nom -q --file . darwinConfigurations.${{matrix.host}}' | |
| - run: | | |
| echo "<code>$(readlink -f ./result)</code>" >> "$GITHUB_STEP_SUMMARY" |