Skip to content

Commit 371a46d

Browse files
committed
ci: build universal smoke and soak binaries for macOS release
1 parent 41c80c0 commit 371a46d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,28 @@ jobs:
4949
run: |
5050
rustup target add aarch64-apple-darwin x86_64-apple-darwin
5151
52+
- name: Build universal smoke/soak helpers for macOS bundle
53+
if: runner.os == 'macOS' && matrix.target == 'universal-apple-darwin'
54+
run: |
55+
set -euo pipefail
56+
for target in x86_64-apple-darwin aarch64-apple-darwin; do
57+
cargo build \
58+
--manifest-path src-tauri/Cargo.toml \
59+
--release \
60+
--target "$target" \
61+
--bin smoke \
62+
--bin soak
63+
done
64+
65+
mkdir -p src-tauri/target/universal-apple-darwin/release
66+
for bin in smoke soak; do
67+
lipo -create \
68+
"src-tauri/target/x86_64-apple-darwin/release/${bin}" \
69+
"src-tauri/target/aarch64-apple-darwin/release/${bin}" \
70+
-output "src-tauri/target/universal-apple-darwin/release/${bin}"
71+
chmod +x "src-tauri/target/universal-apple-darwin/release/${bin}"
72+
done
73+
5274
- name: Rust cache
5375
uses: Swatinem/rust-cache@v2
5476
with:

0 commit comments

Comments
 (0)