@@ -30,50 +30,63 @@ jobs:
3030 run : |
3131 set -Eeu
3232 echo matrix="$(python scripts/github-matrix.py extensions)" >> "$GITHUB_OUTPUT"
33+ # XXX debugging
34+ exit 1
3335
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 )
3638 needs : extensions-matrix
3739 runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
40+ if : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux != null }}
3841 strategy :
3942 fail-fast : false
4043 max-parallel : 3
41- matrix : ${{fromJSON(needs.extensions-matrix.outputs.matrix)}}
44+ matrix : ${{ fromJSON(needs.extensions-matrix.outputs.matrix).aarch64_linux }}
4245 steps :
4346 - name : Checkout Repo
4447 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
4750 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
5367 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 }}
7386
7487
7588 checks-matrix :
76- needs : [build-extensions]
89+ needs : [build-extensions-aarch64-linux, build-extensions-aarch64-darwin, build-extensions-x86_64-linux ]
7790 runs-on :
7891 group : self-hosted-runners-nix
7992 labels :
@@ -92,42 +105,18 @@ jobs:
92105
93106 build-checks :
94107 name : ${{ matrix.name }} (${{ matrix.system }})
95- needs : [checks-matrix, build-extensions ]
108+ needs : [checks-matrix]
96109 runs-on : ${{ matrix.runs_on.group && matrix.runs_on || matrix.runs_on.labels }}
97110 strategy :
98111 fail-fast : false
99112 matrix : ${{fromJSON(needs.checks-matrix.outputs.matrix)}}
100113 steps :
101114 - name : Checkout Repo
102115 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
105118 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 }}
131120
132121 run-tests :
133122 needs : build-checks
0 commit comments