forked from mlemgroup/mlem
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (73 loc) · 2.12 KB
/
ci_build.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI - Build & Test
env:
XCODE_VERSION: 14.3.1
XCODEBUILD_DESTINATION: platform=iOS Simulator,name=iPhone 14,OS=16.4
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
Build:
permissions: write-all
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
name: Set Xcode Version
with:
xcode-version: "${{ env.XCODE_VERSION }}"
- name: "Test SDK versions"
run: |
xcodebuild -showsdks
- name: "Xcode Build"
uses: sersoft-gmbh/xcodebuild-action@v2
with:
project: Mlem.xcodeproj
scheme: Mlem
destination: "${{ env.XCODEBUILD_DESTINATION }}"
action: build
result-bundle-path: build_results.xcresult
- uses: kishikawakatsumi/xcresulttool@v1
name: Publish build results
with:
path: build_results.xcresult
upload-bundles: never # Permission issues with uploading
show-passed-tests: false
if: success() || failure()
# ^ This is important because the action will be run
# even if the test fails in the previous step.
Test:
permissions: write-all
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
name: Set Xcode Version
with:
xcode-version: "${{ env.XCODE_VERSION }}"
- name: "Test SDK versions"
run: |
xcodebuild -showsdks
- name: "Xcode Test"
uses: sersoft-gmbh/xcodebuild-action@v2
with:
project: Mlem.xcodeproj
scheme: Mlem
destination: "${{ env.XCODEBUILD_DESTINATION }}"
action: test
result-bundle-path: test_results.xcresult
- uses: kishikawakatsumi/xcresulttool@v1
name: Publish test results
with:
path: test_results.xcresult
upload-bundles: never # Permission issues with uploading
if: success() || failure()
# ^ This is important because the action will be run
# even if the test fails in the previous step.