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 de02e5c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ 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
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 de02e5c

Please sign in to comment.