34
34
- name : Checkout Repo
35
35
uses : actions/checkout@v4
36
36
- name : Build Nix Package
37
- uses : ./.github/actions/nix-build-self-hosted
38
- with :
39
- attr : ${{ matrix.attr }}
37
+ uses : ./.github/actions/nix-install-self-hosted
38
+ - name : nix build
39
+ shell : bash
40
+ run : nix build --accept-flake-config -L .#${{ matrix.attr }}
40
41
41
42
nix-build-aarch64-darwin :
42
43
name : ${{ matrix.name }} (aarch64-darwin)
@@ -51,30 +52,34 @@ jobs:
51
52
- name : Checkout Repo
52
53
uses : actions/checkout@v4
53
54
- name : Build Nix Package
54
- uses : ./.github/actions/nix-build-self-hosted
55
- with :
56
- attr : ${{ matrix.attr }}
55
+ uses : ./.github/actions/nix-install-self-hosted
56
+ - name : nix build
57
+ shell : bash
58
+ run : nix build --accept-flake-config -L .#${{ matrix.attr }}
57
59
58
- # TODO
59
- # nix-build-x86_64-linux:
60
- # name: ${{matrix.postgresql_version}}.${{ matrix.name }} (x86_64-linux)
61
- # needs: nix-eval
62
- # runs-on: ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
63
- # if: ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux != null }}
64
- # strategy:
65
- # fail-fast: false
66
- # max-parallel: 3
67
- # matrix: ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux }}
68
- # steps:
69
- # - name: Checkout Repo
70
- # uses: actions/checkout@v4
71
- # - name: Build Nix Package
72
- # uses: ./.github/actions/nix-build-self-hosted
73
- # with:
74
- # attr: ${{ matrix.attr }}
60
+ nix-build-x86_64-linux :
61
+ name : ${{ matrix.name }} (x86_64-linux)
62
+ needs : nix-eval
63
+ runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
64
+ if : ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux != null }}
65
+ strategy :
66
+ fail-fast : false
67
+ max-parallel : 5
68
+ matrix : ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux }}
69
+ steps :
70
+ - name : Checkout Repo
71
+ uses : actions/checkout@v4
72
+ - name : Install nix
73
+ uses : ./.github/actions/nix-install-ephemeral
74
+ env :
75
+ DEV_AWS_ROLE : ${{ secrets.DEV_AWS_ROLE }}
76
+ NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
77
+ - name : nix build
78
+ shell : bash
79
+ run : nix build --accept-flake-config -L .#${{ matrix.attr }}
75
80
76
81
run-testinfra :
77
- needs : [nix-build-aarch64-linux, nix-build-aarch64-darwin] # , nix-build-x86_64-linux]
82
+ needs : [nix-build-aarch64-linux, nix-build-aarch64-darwin, nix-build-x86_64-linux]
78
83
if : |
79
84
!cancelled() &&
80
85
(needs.nix-build-aarch64-linux.result == 'skipped' || needs.nix-build-aarch64-linux.result == 'success') &&
84
89
DEV_AWS_ROLE : ${{ secrets.DEV_AWS_ROLE }}
85
90
86
91
run-tests :
87
- needs : [nix-build-aarch64-linux, nix-build-aarch64-darwin] # , nix-build-x86_64-linux]
92
+ needs : [nix-build-aarch64-linux, nix-build-aarch64-darwin, nix-build-x86_64-linux]
88
93
if : |
89
94
!cancelled() &&
90
95
(needs.nix-build-aarch64-linux.result == 'skipped' || needs.nix-build-aarch64-linux.result == 'success') &&
0 commit comments