|
| 1 | +name: Build |
| 2 | +run-name: Build for ${{ github.ref_name }} by ${{ github.actor }} |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + workflow_dispatch: |
| 9 | +jobs: |
| 10 | + build-hosts: |
| 11 | + timeout-minutes: 60 |
| 12 | + name: Build ${{ matrix.host }} |
| 13 | + runs-on: ${{ matrix.runner }} |
| 14 | + permissions: |
| 15 | + contents: read |
| 16 | + strategy: |
| 17 | + matrix: |
| 18 | + include: |
| 19 | + - host: axolotl |
| 20 | + runner: ubuntu-latest |
| 21 | + steps: |
| 22 | + - name: Checkout repository |
| 23 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 24 | + with: |
| 25 | + persist-credentials: false |
| 26 | + - name: Set up Nix |
| 27 | + uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0 |
| 28 | + - name: Set up Cachix |
| 29 | + uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 |
| 30 | + with: |
| 31 | + name: heitor |
| 32 | + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} |
| 33 | + - name: Build host |
| 34 | + run: nix build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel --accept-flake-config |
| 35 | + build-dev-shells: |
| 36 | + timeout-minutes: 15 |
| 37 | + name: Build devShell for ${{ matrix.package }} on ${{ matrix.system }} |
| 38 | + runs-on: ${{ matrix.runner }} |
| 39 | + permissions: |
| 40 | + contents: read |
| 41 | + strategy: |
| 42 | + matrix: |
| 43 | + system: |
| 44 | + - aarch64-linux |
| 45 | + - x86_64-linux |
| 46 | + include: |
| 47 | + - system: x86_64-linux |
| 48 | + runner: ubuntu-latest |
| 49 | + - system: aarch64-linux |
| 50 | + runner: ubuntu-24.04-arm |
| 51 | + steps: |
| 52 | + - name: Checkout repository |
| 53 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 54 | + with: |
| 55 | + persist-credentials: false |
| 56 | + - name: Set up Nix |
| 57 | + uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0 |
| 58 | + - name: Set up Cachix |
| 59 | + uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 |
| 60 | + with: |
| 61 | + name: heitor |
| 62 | + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} |
| 63 | + - name: Build devShell |
| 64 | + run: nix build .#devShells.${{ matrix.system }}.default --accept-flake-config |
| 65 | + build-formatter: |
| 66 | + timeout-minutes: 14 |
| 67 | + name: Build formatter on ${{ matrix.system }} |
| 68 | + runs-on: ${{ matrix.runner }} |
| 69 | + permissions: |
| 70 | + contents: read |
| 71 | + strategy: |
| 72 | + matrix: |
| 73 | + system: |
| 74 | + - aarch64-linux |
| 75 | + - x86_64-linux |
| 76 | + include: |
| 77 | + - system: x86_64-linux |
| 78 | + runner: ubuntu-latest |
| 79 | + - system: aarch64-linux |
| 80 | + runner: ubuntu-24.04-arm |
| 81 | + steps: |
| 82 | + - name: Checkout repository |
| 83 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 84 | + with: |
| 85 | + persist-credentials: false |
| 86 | + - name: Set up Nix |
| 87 | + uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0 |
| 88 | + - name: Set up Cachix |
| 89 | + uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 |
| 90 | + with: |
| 91 | + name: heitor |
| 92 | + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} |
| 93 | + - name: Build formatter |
| 94 | + run: nix build .#formatter.${{ matrix.system }} --accept-flake-config |
0 commit comments