Skip to content

Commit

Permalink
chore: update release scripts for OSX version and aarch64 target
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Oct 24, 2022
1 parent e22055e commit 47f95b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
target: aarch64-apple-darwin
- name: Install LLVM
run: choco install -y llvm
if: runner.os == 'Windows'
Expand Down
4 changes: 2 additions & 2 deletions scripts/release-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ gzip -c target/release/pact-stub-server > target/artifacts/pact-stub-server-osx-
openssl dgst -sha256 -r target/artifacts/pact-stub-server-osx-x86_64.gz > target/artifacts/pact-stub-server-osx-x86_64.gz.sha256

# M1
export SDKROOT=$(xcrun -sdk macosx11.1 --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.1 --show-sdk-platform-version)
export SDKROOT=$(xcrun -sdk macosx12.1 --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx12.1 --show-sdk-platform-version)
cargo build --target aarch64-apple-darwin --release
gzip -c target/aarch64-apple-darwin/release/pact_verifier_cli > target/artifacts/pact-stub-server-osx-aarch64.gz
openssl dgst -sha256 -r target/artifacts/pact-stub-server-osx-aarch64.gz > target/artifacts/pact-stub-server-osx-aarch64.gz.sha256

0 comments on commit 47f95b4

Please sign in to comment.