@@ -34,19 +34,21 @@ jobs:
3434 matrix : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_linux }}
3535 steps :
3636 - name : Checkout Repo
37+ if : ${{ matrix.attr != '' }}
3738 uses : actions/checkout@v4
3839 - name : Install nix (ephemeral)
39- if : ${{ matrix.runs_on.group != 'self-hosted-runners-nix' }}
40+ if : ${{ matrix.attr != '' && matrix. runs_on.group != 'self-hosted-runners-nix' }}
4041 uses : ./.github/actions/nix-install-ephemeral
4142 with :
4243 push-to-cache : ' true'
4344 env :
4445 DEV_AWS_ROLE : ${{ secrets.DEV_AWS_ROLE }}
4546 NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
4647 - name : Install nix (self-hosted)
47- if : ${{ matrix.runs_on.group == 'self-hosted-runners-nix' }}
48+ if : ${{ matrix.attr != '' && matrix. runs_on.group == 'self-hosted-runners-nix' }}
4849 uses : ./.github/actions/nix-install-self-hosted
4950 - name : nix build
51+ if : ${{ matrix.attr != '' }}
5052 shell : bash
5153 run : nix build --accept-flake-config -L .#${{ matrix.attr }}
5254
@@ -55,18 +57,21 @@ jobs:
5557 ${{ matrix.name }}${{ matrix.postgresql_version && format(' - Postgres {0}', matrix.postgresql_version) || '' }}
5658 (aarch64-darwin)
5759 needs : nix-eval
58- runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
60+ runs-on : ${{ matrix.attr != '' && matrix. runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
5961 if : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_darwin != null }}
6062 strategy :
6163 fail-fast : false
6264 max-parallel : 5
6365 matrix : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_darwin }}
6466 steps :
6567 - name : Checkout Repo
68+ if : ${{ matrix.attr != '' }}
6669 uses : actions/checkout@v4
6770 - name : Install nix
71+ if : ${{ matrix.attr != '' }}
6872 uses : ./.github/actions/nix-install-self-hosted
6973 - name : nix build
74+ if : ${{ matrix.attr != '' }}
7075 shell : bash
7176 run : nix build --accept-flake-config -L .#${{ matrix.attr }}
7277
@@ -75,23 +80,26 @@ jobs:
7580 ${{ matrix.name }}${{ matrix.postgresql_version && format(' - Postgres {0}', matrix.postgresql_version) || '' }}
7681 (x86_64-linux)
7782 needs : nix-eval
78- runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
83+ runs-on : ${{ matrix.attr != '' && matrix. runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
7984 if : ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux != null }}
8085 strategy :
8186 fail-fast : false
8287 max-parallel : 5
8388 matrix : ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux }}
8489 steps :
8590 - name : Checkout Repo
91+ if : ${{ matrix.attr != '' }}
8692 uses : actions/checkout@v4
8793 - name : Install nix
94+ if : ${{ matrix.attr != '' }}
8895 uses : ./.github/actions/nix-install-ephemeral
8996 with :
9097 push-to-cache : ' true'
9198 env :
9299 DEV_AWS_ROLE : ${{ secrets.DEV_AWS_ROLE }}
93100 NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
94101 - name : nix build
102+ if : ${{ matrix.attr != '' }}
95103 shell : bash
96104 run : nix build --accept-flake-config -L .#${{ matrix.attr }}
97105
0 commit comments