Skip to content

Commit

Permalink
Use xcrun
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Feb 13, 2024
1 parent 82df573 commit 5f6da63
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ jobs:
run: rustup override set ${{ steps.toolchain.outputs.name }}
- name: Run cargo test
working-directory: ./aws-lc-rs
run: cargo test --features bindgen,unstable --target ${{ matrix.target }}
env:
# Surely there's a way to dynamially locate this path
DYLD_ROOT_PATH: "/Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/"
run: |
function latest_xcode() {
mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'" | sort | tail -n 1
}
sudo xcode-select --switch $(latest_xcode)
xcode-select -p
xcodebuild -runFirstLaunch
export DYLD_ROOT_PATH=$(xcrun --sdk iphonesimulator17.2 --show-sdk-path)
echo DYLD_ROOT_PATH=${DYLD_ROOT_PATH}
cargo test --features bindgen,unstable --target ${{ matrix.target }}

0 comments on commit 5f6da63

Please sign in to comment.