File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 22
22
NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
23
23
24
24
nix-build-aarch64-linux :
25
- name : ${{ matrix.name }} (aarch64-linux)
25
+ name : >-
26
+ ${{ matrix.name }}${{ matrix.postgres_version && format(' - Postgres {0}', matrix.postgres_version) || '' }}
27
+ (aarch64-linux)
26
28
needs : nix-eval
27
29
runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
28
30
if : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_linux != null }}
40
42
run : nix build --accept-flake-config -L .#${{ matrix.attr }}
41
43
42
44
nix-build-aarch64-darwin :
43
- name : ${{ matrix.name }} (aarch64-darwin)
45
+ name : >-
46
+ ${{ matrix.name }}${{ matrix.postgres_version && format(' - Postgres {0}', matrix.postgres_version) || '' }}
47
+ (aarch64-darwin)
44
48
needs : nix-eval
45
49
runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
46
50
if : ${{ fromJSON(needs.nix-eval.outputs.matrix).aarch64_darwin != null }}
58
62
run : nix build --accept-flake-config -L .#${{ matrix.attr }}
59
63
60
64
nix-build-x86_64-linux :
61
- name : ${{ matrix.name }} (x86_64-linux)
65
+ name : >-
66
+ ${{ matrix.name }}${{ matrix.postgres_version && format(' - Postgres {0}', matrix.postgres_version) || '' }}
67
+ (x86_64-linux)
62
68
needs : nix-eval
63
69
runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
64
70
if : ${{ fromJSON(needs.nix-eval.outputs.matrix).x86_64_linux != null }}
Original file line number Diff line number Diff line change @@ -198,17 +198,17 @@ def main() -> None:
198
198
199
199
def clean_package_for_output (pkg : GitHubActionPackage ) -> dict :
200
200
"""Remove debug fields from package for final output"""
201
- return {
201
+ returned_pkg = {
202
202
"attr" : pkg ["attr" ],
203
203
"name" : pkg ["name" ],
204
204
"system" : pkg ["system" ],
205
205
"runs_on" : pkg ["runs_on" ],
206
- ** (
207
- {"postgresql_version" : pkg ["postgresql_version" ]}
208
- if "postgresql_version" in pkg
209
- else {}
210
- ),
211
206
}
207
+ if is_extension_pkg (pkg ):
208
+ # Extract PostgreSQL version from attribute path
209
+ attrs = pkg ["attr" ].split ("." )
210
+ returned_pkg ["postgresql_version" ] = attrs [- 3 ].split ("_" )[- 1 ]
211
+ return returned_pkg
212
212
213
213
# Group packages by system
214
214
grouped_by_system = defaultdict (list )
You can’t perform that action at this time.
0 commit comments