@@ -100,6 +100,8 @@ commands:
100100 parameters :
101101 target-arch :
102102 type : string
103+ target-triple :
104+ type : string
103105 steps :
104106 - run : |
105107 export DEPLOY_ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
@@ -110,13 +112,18 @@ commands:
110112 corepack enable
111113 corepack prepare [email protected] --activate 112114 pnpm build
113- npx tauri build
114- bazel run //:deploy-mac-<<parameters.target-arch>>-dmg -- snapshot
115+ rustup target add <<parameters.target-triple>>
116+ npx tauri build --target <<parameters.target-triple>>
117+ # --define version doesn't seem to work, so we just write it into the VERSION file.
118+ git rev-parse HEAD > VERSION
119+ bazel run --define version=$(git rev-parse HEAD) //:deploy-mac-<<parameters.target-arch>>-dmg -- snapshot
115120
116121 deploy-mac-release :
117122 parameters :
118123 target-arch :
119124 type : string
125+ target-triple :
126+ type : string
120127 steps :
121128 - run : |
122129 export DEPLOY_ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
@@ -127,7 +134,8 @@ commands:
127134 corepack enable
128135 corepack prepare [email protected] --activate 129136 pnpm build
130- npx tauri build
137+ rustup target add <<parameters.target-triple>>
138+ npx tauri build --target <<parameters.target-triple>>
131139 bazel run //:deploy-mac-<<parameters.target-arch>>-dmg -- release
132140
133141 deploy-linux-snapshot :
@@ -155,7 +163,9 @@ commands:
155163 sudo ln -sf /usr/bin/python3.8 /usr/bin/python3
156164 export PATH="/usr/bin:$PATH"
157165 npx tauri build
158- bazel run //:deploy-linux-<<parameters.target-arch>>-deb --compilation_mode=opt -- snapshot
166+ # --define version doesn't seem to work, so we just write it into the VERSION file.
167+ git rev-parse HEAD > VERSION
168+ bazel run --define version=$(git rev-parse HEAD) //:deploy-linux-<<parameters.target-arch>>-deb --compilation_mode=opt -- snapshot
159169
160170 deploy-linux-release :
161171 parameters :
@@ -250,6 +260,7 @@ jobs:
250260 - install-rust
251261 - deploy-mac-snapshot :
252262 target-arch : arm64
263+ target-triple : aarch64-apple-darwin
253264
254265 deploy-mac-x86_64-snapshot :
255266 executor : mac-arm64
@@ -264,6 +275,7 @@ jobs:
264275 - install-rust
265276 - deploy-mac-snapshot :
266277 target-arch : x86_64
278+ target-triple : x86_64-apple-darwin
267279
268280 deploy-linux-arm64-snapshot :
269281 executor : linux-arm64
@@ -331,6 +343,7 @@ jobs:
331343 - install-rust
332344 - deploy-mac-release :
333345 target-arch : arm64
346+ target-triple : aarch64-apple-darwin
334347
335348 deploy-mac-x86_64-release :
336349 executor : mac-arm64
@@ -345,6 +358,7 @@ jobs:
345358 - install-rust
346359 - deploy-mac-release :
347360 target-arch : x86_64
361+ target-triple : x86_64-apple-darwin
348362
349363 deploy-linux-arm64-release :
350364 executor : linux-arm64
0 commit comments