Skip to content

Commit

Permalink
ci: test macos-11 sdk paths
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Feb 24, 2024
1 parent ff5d996 commit f769bf6
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 332 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/build-ffi.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/build.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/compatability-suite.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/issue-comment-created.yml

This file was deleted.

87 changes: 0 additions & 87 deletions .github/workflows/release.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/smartbear-issue-label-added.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/test_osx_sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pact-Rust FFI Build

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ macos-11 ]
rust: [ stable ]
env:
pact_do_not_track: true
steps:
- uses: actions/checkout@v3
- run: ./release-osx.sh
15 changes: 0 additions & 15 deletions .github/workflows/triage.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/trigger_pact_docs_update.yml

This file was deleted.

16 changes: 16 additions & 0 deletions release-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash -e

cargo clean
cargo build --release
mkdir -p ../release_artifacts
gzip -c ../target/release/libpact_ffi.dylib > ../release_artifacts/libpact_ffi-osx-x86_64.dylib.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-osx-x86_64.dylib.gz > ../release_artifacts/libpact_ffi-osx-x86_64.dylib.gz.sha256
gzip -c ../target/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-osx-x86_64.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-osx-x86_64.a.gz > ../release_artifacts/libpact_ffi-osx-x86_64.a.gz.sha256

# M1
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
export SDKROOT=$(xcrun -sdk macosx11.1 --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.1 --show-sdk-platform-version)
echo $SDKROOT
echo MACOSX_DEPLOYMENT_TARGET

0 comments on commit f769bf6

Please sign in to comment.