@@ -30,50 +30,63 @@ jobs:
30
30
run : |
31
31
set -Eeu
32
32
echo matrix="$(python scripts/github-matrix.py extensions)" >> "$GITHUB_OUTPUT"
33
+ # XXX debugging
34
+ exit 1
33
35
34
- build-extensions :
35
- name : ${{matrix.postgresql_version}}.${{ matrix.name }} (${{ matrix.system }} )
36
+ build-extensions-aarch64-linux :
37
+ name : ${{matrix.postgresql_version}}.${{ matrix.name }} (aarch64-linux )
36
38
needs : extensions-matrix
37
39
runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
40
+ if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux != null }}
38
41
strategy :
39
42
fail-fast : false
40
43
max-parallel : 3
41
- matrix : ${{fromJSON(needs.extensions-matrix.outputs.matrix)}}
44
+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux }}
42
45
steps :
43
46
- name : Checkout Repo
44
47
uses : actions/checkout@v4
45
- - name : aws-oidc
46
- uses :
aws- actions/[email protected]
48
+ - name : Build Nix Package
49
+ uses : ./.github/ actions/nix-build-setup
47
50
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]
51
+ attr : ${{ matrix.attr }}
52
+
53
+ build-extensions-aarch64-darwin :
54
+ name : ${{matrix.postgresql_version}}.${{ matrix.name }} (aarch64-darwin)
55
+ needs : extensions-matrix
56
+ runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
57
+ if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_darwin != null }}
58
+ strategy :
59
+ fail-fast : false
60
+ max-parallel : 3
61
+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_darwin }}
62
+ steps :
63
+ - name : Checkout Repo
64
+ uses : actions/checkout@v4
65
+ - name : Build Nix Package
66
+ uses : ./.github/actions/nix-build-setup
53
67
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 }}
68
+ attr : ${{ matrix.attr }}
69
+
70
+ build-extensions-x86_64-linux :
71
+ name : ${{matrix.postgresql_version}}.${{ matrix.name }} (x86_64-linux)
72
+ needs : extensions-matrix
73
+ runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
74
+ if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).x86_64_linux != null }}
75
+ strategy :
76
+ fail-fast : false
77
+ max-parallel : 3
78
+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).x86_64_linux }}
79
+ steps :
80
+ - name : Checkout Repo
81
+ uses : actions/checkout@v4
82
+ - name : Build Nix Package
83
+ uses : ./.github/actions/nix-build-setup
84
+ with :
85
+ attr : ${{ matrix.attr }}
73
86
74
87
75
88
checks-matrix :
76
- needs : [build-extensions]
89
+ needs : [build-extensions-aarch64-linux, build-extensions-aarch64-darwin, build-extensions-x86_64-linux ]
77
90
runs-on :
78
91
group : self-hosted-runners-nix
79
92
labels :
@@ -92,42 +105,18 @@ jobs:
92
105
93
106
build-checks :
94
107
name : ${{ matrix.name }} (${{ matrix.system }})
95
- needs : [checks-matrix, build-extensions ]
108
+ needs : [checks-matrix]
96
109
runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
97
110
strategy :
98
111
fail-fast : false
99
112
matrix : ${{fromJSON(needs.checks-matrix.outputs.matrix)}}
100
113
steps :
101
114
- name : Checkout Repo
102
115
uses : actions/checkout@v4
103
- - name : aws-oidc
104
- uses :
aws- actions/[email protected]
116
+ - name : Build Nix Package
117
+ uses : ./.github/ actions/nix-build-setup
105
118
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 }}
119
+ attr : ${{ matrix.attr }}
131
120
132
121
run-tests :
133
122
needs : build-checks
0 commit comments