-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (33 loc) · 1.16 KB
/
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
name: project
on: ["push", "workflow_dispatch"]
jobs:
build-app:
name: Build App
strategy:
fail-fast: false
matrix:
os: [macos-12]
build_type: ['release']
run-config:
- { xcode_version: '13.4.1', simulator: 'name=iPhone 13 Pro' }
- { xcode_version: '14.0.1', simulator: 'name=iPhone 14 Pro' }
- { xcode_version: '14.1', simulator: 'name=iPhone 14 Pro' }
- { xcode_version: '14.2', simulator: 'name=iPhone 14 Pro' }
runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.run-config['xcode_version'] }}.app/Contents/Developer
DESTINATION: platform=iOS Simulator,${{ matrix.run-config['simulator'] }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Prepare shell
run: |
set -o pipefail
- name: Build
run: |
swift build -c release