-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (51 loc) · 1.57 KB
/
cicd.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
name: Build for macos platform
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
schedule:
- cron: 0 0 * * *
# https://stackoverflow.com/a/72408109/6942800
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
name: ${{ matrix.command }} on ${{ matrix.platform }} (xcode ${{ matrix.xcode }}, ${{ matrix.macos }})
runs-on: ${{ matrix.macos }}
strategy:
fail-fast: false
matrix:
macos: ['macos-14']
xcode: ['15.4']
scheme: ['TheBoringWorker']
command: ['build']
platform: ['macOS']
swift: ['5.10']
steps:
- name: Switch xcode to ${{ matrix.xcode }}
uses: maxim-lobanov/setup-xcode@v1.2.3
with:
xcode-version: ${{ matrix.xcode }}
- name: Double-check macOS version (${{ matrix.macos }})
run: sw_vers
- name: Code Checkout
uses: actions/checkout@v2
- name: Check xcodebuild version
run: xcodebuild -version
- name: Check xcode embedded SDKs
run: xcodebuild -showsdks
- name: Show buildable schemes
run: xcodebuild -list
- name: Show eligible build destinations for ${{ matrix.scheme }}
run: xcodebuild -showdestinations -scheme ${{ matrix.scheme }}
- uses: mxcl/xcodebuild@v1.9.2
with:
platform: ${{ matrix.platform }}
scheme: ${{ matrix.scheme }}
action: ${{ matrix.command }}
code-coverage: true
verbosity: xcpretty
upload-logs: always