Skip to content

Commit d535c56

Browse files
author
clint
committed
fix(build): add macOS x86_64 support to release workflow
1 parent f181e5e commit d535c56

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
target: aarch64-unknown-linux-gnu
2727
artifact_name: psy-validator-cli-linux-aarch64
2828
extension: ""
29+
- os: macos-latest
30+
target: x86_64-apple-darwin
31+
artifact_name: psy-validator-cli-macos-x86_64
32+
extension: ""
2933
- os: macos-latest
3034
target: aarch64-apple-darwin
3135
artifact_name: psy-validator-cli-macos-aarch64
@@ -58,6 +62,13 @@ jobs:
5862
echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config.toml
5963
echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml
6064
65+
- name: Install macOS SDK for x86_64 (if needed)
66+
if: matrix.target == 'x86_64-apple-darwin'
67+
run: |
68+
# Rust should handle x86_64 cross-compilation on ARM64 macOS automatically
69+
# Just ensure the target is installed
70+
rustup target add x86_64-apple-darwin || true
71+
6172
- name: Cache cargo registry
6273
uses: actions/cache@v4
6374
with:
@@ -171,6 +182,7 @@ jobs:
171182
172183
- **Linux x86_64**: `psy-validator-cli-linux-x86_64.tar.gz`
173184
- **Linux ARM64**: `psy-validator-cli-linux-aarch64.tar.gz`
185+
- **macOS x86_64**: `psy-validator-cli-macos-x86_64.tar.gz`
174186
- **macOS ARM64**: `psy-validator-cli-macos-aarch64.tar.gz`
175187
- **Windows x86_64**: `psy-validator-cli-windows-x86_64.zip`
176188

0 commit comments

Comments
 (0)