Build flake outputs #748
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: Cachix | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| pull_request: | |
| workflow_dispatch: | |
| run-name: "Build flake outputs" | |
| # Builds can cancel other in-progress builds on the same ref. | |
| concurrency: | |
| group: ${{ github.workflow }}-build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-linux-hosts: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| host: | |
| - alpha | |
| - bravo | |
| - delta | |
| - echo | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| lfs: true | |
| - uses: wimpysworld/nothing-but-nix@10c936d9e46521bf923f75458e0cbd4fa309300d | |
| with: | |
| hatchet-protocol: "carve" | |
| - name: Build ${{ matrix.host }} | |
| uses: ./.github/actions/build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| derivation: ".#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel" | |
| cachix-extra-pull-names: "nix-gaming, hyprland, nix-community" | |
| additional-flags: "--max-jobs 2" | |
| setup-qemu: ${{ matrix.host == 'bravo' }} | |
| build-macos-hosts: | |
| runs-on: macos-15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| host: | |
| - charlie | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| lfs: true | |
| - name: Build ${{ matrix.host }} | |
| uses: ./.github/actions/build | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| derivation: ".#darwinConfigurations.${{ matrix.host }}.config.system.build.toplevel" | |
| cachix-extra-pull-names: "nix-gaming, hyprland, nix-community" | |
| additional-flags: "--max-jobs 2" | |
| build-result: # https://github.com/orgs/community/discussions/26822#discussioncomment-5122101 | |
| runs-on: ubuntu-24.04 | |
| needs: [build-linux-hosts, build-macos-hosts] | |
| if: ${{ failure() || success() }} | |
| steps: | |
| - if: ${{ contains(needs.*.result, 'failure') }} | |
| run: exit 1 |