@@ -31,49 +31,54 @@ jobs:
31
31
set -Eeu
32
32
echo matrix="$(python scripts/github-matrix.py extensions)" >> "$GITHUB_OUTPUT"
33
33
34
- build-extensions :
35
- name : ${{matrix.postgresql_version}}.${{ matrix.name }} (${{ matrix.system }} )
34
+ build-extensions-aarch64-linux :
35
+ name : ${{matrix.postgresql_version}}.${{ matrix.name }} (aarch64-linux )
36
36
needs : extensions-matrix
37
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 }}
38
39
strategy :
39
40
fail-fast : false
40
41
max-parallel : 3
41
- matrix : ${{fromJSON(needs.extensions-matrix.outputs.matrix)}}
42
+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux }}
42
43
steps :
43
- - name : Checkout Repo
44
- uses : actions/checkout@v4
45
- - name : aws-oidc
46
- uses :
aws-actions/[email protected]
44
+ - name : Build Nix Package
45
+ uses : ./.github/actions/nix-build-setup
47
46
with :
48
- aws-region : us-east-2
49
- role-to-assume : arn:aws:iam::279559813984:role/supabase-github-oidc-role # Shared Services
50
- role-session-name : gha-oidc-${{ github.run_id }}
51
- - name : aws-creds
52
- uses :
aws-actions/[email protected]
47
+ attr : ${{ matrix.attr }}
48
+
49
+ build-extensions-aarch64-darwin :
50
+ name : ${{matrix.postgresql_version}}.${{ matrix.name }} (aarch64-darwin)
51
+ needs : extensions-matrix
52
+ runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
53
+ if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_darwin != null }}
54
+ strategy :
55
+ fail-fast : false
56
+ max-parallel : 3
57
+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_darwin }}
58
+ steps :
59
+ - name : Build Nix Package
60
+ uses : ./.github/actions/nix-build-setup
53
61
with :
54
- disable-retry : true
55
- aws-region : us-east-2
56
- role-to-assume : arn:aws:iam::436098097459:role/nix-artifacts-deploy-role # supabase-dev
57
- role-session-name : gha-oidc-${{ github.run_id }}
58
- role-chaining : true
59
- role-skip-session-tagging : true
60
- role-duration-seconds : 3600
61
- - name : Write creds files
62
- run : |
63
- umask 006
64
- cat > /etc/nix/aws/nix-aws-credentials <<EOF
65
- [ci-uploader]
66
- aws_access_key_id = ${AWS_ACCESS_KEY_ID}
67
- aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}
68
- aws_session_token = ${AWS_SESSION_TOKEN}
69
- EOF
70
- - name : nix build
71
- run : |
72
- nix build -L .#${{ matrix.attr }}
62
+ attr : ${{ matrix.attr }}
63
+
64
+ build-extensions-x86_64-linux :
65
+ name : ${{matrix.postgresql_version}}.${{ matrix.name }} (x86_64-linux)
66
+ needs : extensions-matrix
67
+ runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
68
+ if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).x86_64_linux != null }}
69
+ strategy :
70
+ fail-fast : false
71
+ max-parallel : 3
72
+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).x86_64_linux }}
73
+ steps :
74
+ - name : Build Nix Package
75
+ uses : ./.github/actions/nix-build-setup
76
+ with :
77
+ attr : ${{ matrix.attr }}
73
78
74
79
75
80
checks-matrix :
76
- needs : [build-extensions]
81
+ needs : [build-extensions-aarch64-linux, build-extensions-aarch64-darwin, build-extensions-x86_64-linux ]
77
82
runs-on :
78
83
group : self-hosted-runners-nix
79
84
labels :
@@ -92,42 +97,16 @@ jobs:
92
97
93
98
build-checks :
94
99
name : ${{ matrix.name }} (${{ matrix.system }})
95
- needs : [checks-matrix, build-extensions]
100
+ needs : [checks-matrix, build-extensions-aarch64-linux, build-extensions-aarch64-darwin, build-extensions-x86_64-linux ]
96
101
runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
97
102
strategy :
98
103
fail-fast : false
99
104
matrix : ${{fromJSON(needs.checks-matrix.outputs.matrix)}}
100
105
steps :
101
- - name : Checkout Repo
102
- uses : actions/checkout@v4
103
- - name : aws-oidc
104
- uses :
aws-actions/[email protected]
106
+ - name : Build Nix Package
107
+ uses : ./.github/actions/nix-build-setup
105
108
with :
106
- aws-region : us-east-2
107
- role-to-assume : arn:aws:iam::279559813984:role/supabase-github-oidc-role # Shared Services
108
- role-session-name : gha-oidc-${{ github.run_id }}
109
- - name : aws-creds
110
- uses :
aws-actions/[email protected]
111
- with :
112
- disable-retry : true
113
- aws-region : us-east-2
114
- role-to-assume : arn:aws:iam::436098097459:role/nix-artifacts-deploy-role # supabase-dev
115
- role-session-name : gha-oidc-${{ github.run_id }}
116
- role-chaining : true
117
- role-skip-session-tagging : true
118
- role-duration-seconds : 3600
119
- - name : Write creds files
120
- run : |
121
- umask 006
122
- cat > /etc/nix/aws/nix-aws-credentials <<EOF
123
- [ci-uploader]
124
- aws_access_key_id = ${AWS_ACCESS_KEY_ID}
125
- aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}
126
- aws_session_token = ${AWS_SESSION_TOKEN}
127
- EOF
128
- - name : nix build
129
- run : |
130
- nix build -L .#${{ matrix.attr }}
109
+ attr : ${{ matrix.attr }}
131
110
132
111
run-tests :
133
112
needs : build-checks
0 commit comments