Skip to content

DOC-11959: Vector Search Code Snippets - iOS #4

DOC-11959: Vector Search Code Snippets - iOS

DOC-11959: Vector Search Code Snippets - iOS #4

Workflow file for this run

name: iOS Snippets Build
on:
pull_request:
paths:
- 'modules/objc/**'
- 'modules/swift/**'
jobs:
build_objc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: "Build - ObjC"
env:
SCHEME: ${{ 'code-snippets' }}
run: |
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | sed 's/Simulator//g' | awk '{$1=$1;print}'`
xcodebuild build-for-testing -scheme "${SCHEME}" -project modules/objc/examples/code_snippets.xcodeproj -destination "platform=iOS Simulator,name=$device"
build_swift:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: "Build - Swift"
env:
SCHEME: ${{ 'code-snippets' }}
run: |
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | sed 's/Simulator//g' | awk '{$1=$1;print}'`
xcodebuild build-for-testing -scheme "${SCHEME}" -project modules/swift/examples/code_snippets.xcodeproj -destination "platform=iOS Simulator,name=$device"