-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.46 KB
/
Copy pathci.yml
File metadata and controls
54 lines (45 loc) · 1.46 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and Test
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
- name: Show Xcode version
run: xcodebuild -version
- name: Cache Swift packages
uses: actions/cache@v4
with:
path: SourcePackages
key: ${{ runner.os }}-spm-${{ hashFiles('Axon.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Resolve Swift packages
run: |
xcodebuild -resolvePackageDependencies \
-project Axon.xcodeproj \
-scheme Axon \
-clonedSourcePackagesDirPath SourcePackages
- name: Build and test
run: |
xcodebuild test \
-project Axon.xcodeproj \
-scheme Axon \
-destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \
-clonedSourcePackagesDirPath SourcePackages \
-resultBundlePath TestResults.xcresult \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
IPHONEOS_DEPLOYMENT_TARGET=17.0