@@ -15,7 +15,7 @@ permissions:
1515 packages : write
1616
1717jobs :
18- extensions-matrix :
18+ nix-eval :
1919 runs-on :
2020 group : self-hosted-runners-nix
2121 labels :
@@ -29,95 +29,17 @@ jobs:
2929 name : Generate Nix Matrix
3030 run : |
3131 set -Eeu
32- echo matrix="$(python scripts/github-matrix.py extensions )" >> "$GITHUB_OUTPUT"
32+ echo matrix="$(python scripts/github-matrix.py checks legacyPackages )" >> "$GITHUB_OUTPUT"
3333
34- build-extensions-aarch64-linux :
35- name : ${{matrix.postgresql_version}}.${{ matrix.name }} (aarch64-linux)
36- needs : extensions-matrix
37- runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
38- if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux != null }}
39- strategy :
40- fail-fast : false
41- max-parallel : 5
42- matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux }}
43- steps :
44- - name : Checkout Repo
45- uses : actions/checkout@v4
46- - name : Build Nix Package
47- uses : ./.github/actions/nix-build-setup
48- with :
49- attr : ${{ matrix.attr }}
50-
51- build-extensions-aarch64-darwin :
52- name : ${{matrix.postgresql_version}}.${{ matrix.name }} (aarch64-darwin)
53- needs : extensions-matrix
54- runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
55- if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_darwin != null }}
56- strategy :
57- fail-fast : false
58- max-parallel : 5
59- matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_darwin }}
60- steps :
61- - name : Checkout Repo
62- uses : actions/checkout@v4
63- - name : Build Nix Package
64- uses : ./.github/actions/nix-build-setup
65- with :
66- attr : ${{ matrix.attr }}
67-
68- # TODO
69- # build-extensions-x86_64-linux:
70- # name: ${{matrix.postgresql_version}}.${{ matrix.name }} (x86_64-linux)
71- # needs: extensions-matrix
72- # runs-on: ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
73- # if: ${{ fromJSON(needs.extensions-matrix.outputs.matrix).x86_64_linux != null }}
74- # strategy:
75- # fail-fast: false
76- # max-parallel: 3
77- # matrix: ${{ fromJSON(needs.extensions-matrix.outputs.matrix).x86_64_linux }}
78- # steps:
79- # - name: Checkout Repo
80- # uses: actions/checkout@v4
81- # - name: Build Nix Package
82- # uses: ./.github/actions/nix-build-setup
83- # with:
84- # attr: ${{ matrix.attr }}
85-
86-
87- checks-matrix :
88- needs : [build-extensions-aarch64-linux, build-extensions-aarch64-darwin] # , build-extensions-x86_64-linux]
89- if : |
90- !cancelled() &&
91- (needs.build-extensions-aarch64-linux.result == 'skipped' || needs.build-extensions-aarch64-linux.result == 'success') &&
92- (needs.build-extensions-aarch64-darwin.result == 'skipped' || needs.build-extensions-aarch64-darwin.result == 'success')
93- runs-on :
94- group : self-hosted-runners-nix
95- labels :
96- - aarch64-darwin
97- outputs :
98- matrix : ${{ steps.set-matrix.outputs.matrix }}
99- steps :
100- - name : Checkout Repo
101- uses : actions/checkout@v4
102- - id : set-matrix
103- name : Generate Nix Matrix
104- run : |
105- set -Eeu
106- echo matrix="$(python scripts/github-matrix.py checks)" >> "$GITHUB_OUTPUT"
107-
108- build-checks-aarch64-linux :
34+ nix-build-aarch64-linux :
10935 name : ${{ matrix.name }} (aarch64-linux)
110- needs : checks-matrix
36+ needs : nix-eval
11137 runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
112- if : |
113- !cancelled() &&
114- ${{ fromJSON(needs.checks-matrix.outputs.matrix).aarch64_linux != null }} &&
115- (needs.build-extensions-aarch64-linux.result == 'skipped' || needs.build-extensions-aarch64-linux.result == 'success') &&
116- (needs.build-extensions-aarch64-darwin.result == 'skipped' || needs.build-extensions-aarch64-darwin.result == 'success')
38+ if : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_linux != null }}
11739 strategy :
11840 fail-fast : false
11941 max-parallel : 5
120- matrix : ${{ fromJSON(needs.checks-matrix .outputs.matrix).aarch64_linux }}
42+ matrix : ${{ fromJSON(needs.nix-eval .outputs.matrix).aarch64_linux }}
12143 steps :
12244 - name : Checkout Repo
12345 uses : actions/checkout@v4
@@ -126,19 +48,15 @@ jobs:
12648 with :
12749 attr : ${{ matrix.attr }}
12850
129- build-checks -aarch64-darwin :
51+ nix-build -aarch64-darwin :
13052 name : ${{ matrix.name }} (aarch64-darwin)
131- needs : checks-matrix
53+ needs : nix-eval
13254 runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
133- if : |
134- !cancelled() &&
135- ${{ fromJSON(needs.checks-matrix.outputs.matrix).aarch64_darwin != null }} &&
136- (needs.build-extensions-aarch64-linux.result == 'skipped' || needs.build-extensions-aarch64-linux.result == 'success') &&
137- (needs.build-extensions-aarch64-darwin.result == 'skipped' || needs.build-extensions-aarch64-darwin.result == 'success')
55+ if : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_darwin != null }}
13856 strategy :
13957 fail-fast : false
14058 max-parallel : 5
141- matrix : ${{ fromJSON(needs.checks-matrix .outputs.matrix).aarch64_darwin }}
59+ matrix : ${{ fromJSON(needs.nix-eval .outputs.matrix).aarch64_darwin }}
14260 steps :
14361 - name : Checkout Repo
14462 uses : actions/checkout@v4
@@ -148,15 +66,15 @@ jobs:
14866 attr : ${{ matrix.attr }}
14967
15068 # TODO
151- # build-checks -x86_64-linux:
69+ # nix-build -x86_64-linux:
15270 # name: ${{matrix.postgresql_version}}.${{ matrix.name }} (x86_64-linux)
153- # needs: checks-matrix
71+ # needs: nix-eval
15472 # runs-on: ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
155- # if: ${{ fromJSON(needs.checks-matrix .outputs.matrix).x86_64_linux != null }}
73+ # if: ${{ fromJSON(needs.nix-eval .outputs.matrix).x86_64_linux != null }}
15674 # strategy:
15775 # fail-fast: false
158- # max-parallel: 5
159- # matrix: ${{ fromJSON(needs.checks-matrix .outputs.matrix).x86_64_linux }}
76+ # max-parallel: 3
77+ # matrix: ${{ fromJSON(needs.nix-eval .outputs.matrix).x86_64_linux }}
16078 # steps:
16179 # - name: Checkout Repo
16280 # uses: actions/checkout@v4
16684 # attr: ${{ matrix.attr }}
16785
16886 run-tests :
169- needs : [build-checks- aarch64-linux, build-checks- aarch64-darwin] # , build-checks -x86_64-linux]
87+ needs : [nix- build-aarch64-linux, nix- build-aarch64-darwin] # , nix-build -x86_64-linux]
17088 if : |
17189 !cancelled() &&
172- (needs.build-checks- aarch64-linux.result == 'skipped' || needs.build-checks -aarch64-linux.result == 'success') &&
173- (needs.build-checks- aarch64-darwin.result == 'skipped' || needs.build-checks -aarch64-darwin.result == 'success')
90+ (needs.nix- build-aarch64-linux.result == 'skipped' || needs.nix-build -aarch64-linux.result == 'success') &&
91+ (needs.nix- build-aarch64-darwin.result == 'skipped' || needs.nix-build -aarch64-darwin.result == 'success')
17492 uses : ./.github/workflows/test.yml
0 commit comments