Skip to content

Commit

Permalink
Update CI for Xcode 15
Browse files Browse the repository at this point in the history
  • Loading branch information
mmertsock committed Mar 2, 2024
1 parent f280f86 commit 70f0cae
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,28 @@ on:
workflow_dispatch:
jobs:
build:
runs-on: macos-12
runs-on: macos-14
env:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
xcode: '/Applications/Xcode_14.0.1.app'
destination_ios16: 'platform=iOS Simulator,OS=16.0,name=iPhone 14'
destination_ios15: 'platform=iOS Simulator,OS=15.0,name=iPhone 13'
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
xcode: '/Applications/Xcode_15.2.app'
destination_ios17: 'platform=iOS Simulator,OS=17.2,name=iPhone 15'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CAREEVOLUTIONBUILD_TOKEN }}
submodules: 'recursive'
- name: Link to Older Simulators
run: |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
sudo ln -s /Applications/Xcode_13.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 15.0.simruntime
- name: Build
run: |
set -o pipefail
xcodebuild build-for-testing -workspace 'RKWorkspace.xcworkspace' -scheme 'ORK1Kit' -destination '${{ env.destination_ios15 }}' -destination '${{ env.destination_ios16 }}' CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO IS_TRAVIS_CI=true | xcpretty
xcodebuild build-for-testing -workspace 'RKWorkspace.xcworkspace' -scheme 'ResearchKit' -destination '${{ env.destination_ios15 }}' -destination '${{ env.destination_ios16 }}' CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO IS_TRAVIS_CI=true | xcpretty
xcodebuild build-for-testing -workspace 'RKWorkspace.xcworkspace' -scheme 'ORK1Kit' -destination '${{ env.destination_ios17 }}' IS_TRAVIS_CI=true | xcpretty
xcodebuild build-for-testing -workspace 'RKWorkspace.xcworkspace' -scheme 'ResearchKit' -destination '${{ env.destination_ios17 }}' IS_TRAVIS_CI=true | xcpretty
env:
DEVELOPER_DIR: ${{ env.xcode }}/Contents/Developer
- name: Test
run: |
set -o pipefail
xcodebuild test-without-building -workspace 'RKWorkspace.xcworkspace' -scheme 'ORK1Kit' -destination '${{ env.destination_ios16 }}' CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO IS_TRAVIS_CI=true | xcpretty
xcodebuild test-without-building -workspace 'RKWorkspace.xcworkspace' -scheme 'ORK1Kit' -destination '${{ env.destination_ios15 }}' CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO IS_TRAVIS_CI=true | xcpretty
xcodebuild test-without-building -workspace 'RKWorkspace.xcworkspace' -scheme 'ResearchKit' -destination '${{ env.destination_ios16 }}' CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO IS_TRAVIS_CI=true | xcpretty
xcodebuild test-without-building -workspace 'RKWorkspace.xcworkspace' -scheme 'ResearchKit' -destination '${{ env.destination_ios15 }}' CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO IS_TRAVIS_CI=true | xcpretty
xcodebuild test-without-building -workspace 'RKWorkspace.xcworkspace' -scheme 'ORK1Kit' -destination '${{ env.destination_ios17 }}' IS_TRAVIS_CI=true | xcpretty
xcodebuild test-without-building -workspace 'RKWorkspace.xcworkspace' -scheme 'ResearchKit' -destination '${{ env.destination_ios17 }}' IS_TRAVIS_CI=true | xcpretty
env:
DEVELOPER_DIR: ${{ env.xcode }}/Contents/Developer

0 comments on commit 70f0cae

Please sign in to comment.