File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments