-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (36 loc) · 1.08 KB
/
build-platforms.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
name: Build Platforms
on:
workflow_call: {}
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
jobs:
build:
name: Build ${{ matrix.platform_args }} - Xcode ${{ matrix.xcode_version }}
timeout-minutes: 30
runs-on: macos-14
strategy:
fail-fast: false
matrix:
platform_args: ["iOS tvOS"] # using a single string will run platforms in parallel
xcode_version: ["15.4"]
steps:
- name: Select Xcode
# See https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
run: |
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version }}.app
xcodebuild -version
- uses: actions/checkout@v4
timeout-minutes: 4
- name: Cache .build directory
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-build-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-build-
- name: Run build script
run: |
bin/build ${{ matrix.platform_args }} | xcpretty && exit ${PIPESTATUS[0]}