Skip to content

Commit

Permalink
CI: uncomment yeetd to try speed up runner
Browse files Browse the repository at this point in the history
CI: try to launch simulator first to avoid issues
  • Loading branch information
simonmcl committed Feb 13, 2024
1 parent ebdd1ad commit 020c89b
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,31 @@ jobs:



# # Temporary step due to Xcode 15 / Github actions runner issues
# - name: Install iOS 16 simulator for Xcode 15
# run: |
# # Make iOS 16.4 simulator runtime available to Xcode 15
# sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
# sudo ln -s /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 16.4.simruntime

# # Create an iOS 16.4 simulator
# xcrun simctl create "iPhone 14 Pro (16.4)" "com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro" "com.apple.CoreSimulator.SimRuntime.iOS-16-4"




# - name: Install yeetd
# run: |
# wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
# sudo installer -pkg yeetd-normal.pkg -target /
# yeetd &
# # Temporary step due to Xcode 15 / Github actions runner issues
# - name: Install iOS 16 simulator for Xcode 15
# run: |
# # Make iOS 16.4 simulator runtime available to Xcode 15
# sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
# sudo ln -s /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 16.4.simruntime

# # Create an iOS 16.4 simulator
# xcrun simctl create "iPhone 14 Pro (16.4)" "com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro" "com.apple.CoreSimulator.SimRuntime.iOS-16-4"


- name: Install yeetd
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
Expand All @@ -53,8 +60,8 @@ jobs:
with:
languages: "swift"

# - name: Launch simulator
# run: open -a Simulator --args -CurrentDeviceUDID $(xcrun simctl list --json | ruby -e "require 'json'; puts JSON.parse(ARGF.read)['devices']['com.apple.CoreSimulator.SimRuntime.iOS-17-0'].find { |s| s['name'] == 'iPhone 15 Pro' }['udid']")
- name: Launch simulator
run: open -a Simulator --args -CurrentDeviceUDID $(xcrun simctl list --json | ruby -e "require 'json'; puts JSON.parse(ARGF.read)['devices']['com.apple.CoreSimulator.SimRuntime.iOS-17-0'].find { |s| s['name'] == 'iPhone 15' }['udid']")

- name: Test
run: xcodebuild test -scheme KukaiCoreSwift -destination "platform=iOS Simulator,OS=17.0.1,name=iPhone 15" -enableCodeCoverage YES -resultBundlePath "~/xcode-$NOW.xcresult"
Expand Down

0 comments on commit 020c89b

Please sign in to comment.