Skip to content

Commit

Permalink
Merge pull request #23 from timsutton/smoke-test-macos
Browse files Browse the repository at this point in the history
Always blocklist xpc_dictionary_set_mach_send, add macOS build matrix for CI
  • Loading branch information
mach-kernel committed Apr 12, 2024
2 parents 3c2ccf3 + 534c1ad commit f603146
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,32 @@ env:

jobs:
build:

runs-on: macos-latest
strategy:
fail-fast: false
matrix:
include:
- runner: macos-12
xcode_version: 14.0.1 # macOS SDK: 12.3
- runner: macos-12
xcode_version: 14.2 # macOS SDK: 13.1
- runner: macos-13
xcode_version: 15.2 # macOS SDK: 14.2
- runner: macos-14
xcode_version: 15.3 # macOS SDK: 14.4
# optionally opt into latest stable Xcode version in future
# - runner: macos-14
# xcode_version: latest-stable
runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: ${{ matrix.xcode_version }}
- name: Build
run: cargo build --verbose
run: |
echo "macOS SDK version: $(xcrun --sdk macosx --show-sdk-version)"
cargo build --verbose
- name: Run tests
run: cargo test --verbose
2 changes: 2 additions & 0 deletions xpc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ fn main() {
.allowlist_function("^xpc_.*")
.allowlist_var("^_xpc_.*")
.allowlist_var("^bootstrap_port")
// This function began appearing as of macOS 14.4 SDK headers
.blocklist_function("xpc_dictionary_set_mach_send")
// The following symbols should probably be in libc or mach2, but are not
.allowlist_function("^mach_port.*")
.allowlist_function("^vm_allocate")
Expand Down

0 comments on commit f603146

Please sign in to comment.