diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c0a1ff..9f38158 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' diff --git a/scripts/release-osx.sh b/scripts/release-osx.sh index 1a7c1bb..17969dd 100755 --- a/scripts/release-osx.sh +++ b/scripts/release-osx.sh @@ -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