-
Notifications
You must be signed in to change notification settings - Fork 919
62 lines (51 loc) · 1.78 KB
/
Copy pathbuild.yml
File metadata and controls
62 lines (51 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
validate_package:
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Validate Package
run: swift build --sdk "`xcrun --sdk iphonesimulator --show-sdk-path`" --triple arm64-apple-ios18.0-simulator
build_macos_latest:
runs-on: macos-latest
strategy:
matrix:
include:
- xcode_version: '26.5'
sim_device: 'iPad (10th generation)'
run_extra_validations: 'false'
ios_version: '18.5'
- xcode_version: '26.5'
sim_device: 'iPhone 16'
run_extra_validations: 'true'
ios_version: '18.5'
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Brew Update
run: brew update
- name: Install Core Utils
run: if [ -z "$(brew ls --versions coreutils)" ] ; then brew install coreutils ; fi
- name: Show Xcode versions
run: ls -al /Applications/Xcode*
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version }}.app
- name: Current Xcode Selected
run: xcode-select -p
- name: Install iOS Simulator Runtime
run: |
sudo xcodebuild -runFirstLaunch
sudo xcodebuild -downloadPlatform iOS -buildVersion "${{ matrix.ios_version }}"
echo "Finished downloading platform"
xcrun simctl list runtimes
xcrun simctl create "${{ matrix.sim_device }}" "${{ matrix.sim_device }}" "iOS ${{ matrix.ios_version }}"
- name: List Simulators
run: xcrun simctl list
- name: Build & Test
run: ./scripts/ci.sh "name=${{ matrix.sim_device }},OS=${{ matrix.ios_version }},arch=arm64" "${{ matrix.run_extra_validations }}"