File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Original file line number Diff line number Diff line change 10
10
build :
11
11
strategy :
12
12
matrix :
13
- os : ["ubuntu-22.04"]
13
+ os : ["ubuntu-22.04", "buildjet-4vcpu-ubuntu-2204-arm" ]
14
14
runs-on : ${{ matrix.os }}
15
15
defaults :
16
16
run :
@@ -130,14 +130,19 @@ jobs:
130
130
for pg in {11..15}; do
131
131
export PACKAGE_VERSION=${{ inputs.packageVersion }}
132
132
export PGVERSION=${pg}
133
- export ARCH=amd64
133
+
134
+ if [[ $(arch) == "x86_64" ]]; then
135
+ export ARCH=amd64
136
+ else
137
+ export ARCH=arm64
138
+ fi
134
139
135
140
mkdir -p target/release/pgml-pg${pg}/DEBIAN
136
141
(cat control | envsubst) > target/release/pgml-pg${pg}/DEBIAN/control
137
- dpkg-deb --root-owner-group --build target/release/pgml-pg${pg} postgresql-pgml-${pg}_${PACKAGE_VERSION}-ubuntu22.04-amd64 .deb
142
+ dpkg-deb --root-owner-group --build target/release/pgml-pg${pg} postgresql-pgml-${pg}_${PACKAGE_VERSION}-ubuntu22.04-${ARCH} .deb
138
143
139
144
deb-s3 upload \
140
145
--bucket apt.postgresml.org \
141
- postgresql-pgml-${pg}_${PACKAGE_VERSION}-ubuntu22.04-amd64 .deb \
146
+ postgresql-pgml-${pg}_${PACKAGE_VERSION}-ubuntu22.04-${ARCH} .deb \
142
147
--codename $(lsb_release -cs)
143
148
done
You can’t perform that action at this time.
0 commit comments