-
-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (44 loc) · 1 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
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on:
push:
branches:
- master
- whitelist
pull_request:
branches:
- master
jobs:
build_check:
runs-on: macOS-13
strategy:
max-parallel: 2
fail-fast: false
matrix:
destination:
- "generic/platform=iOS Simulator"
- "generic/platform=macOS,variant=Mac Catalyst"
- "generic/platform=iOS"
steps:
- name: Select Xcode
run: |
xcodes select 15.2
- name: Check XCode Version
run: xcodebuild -version
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
set -o pipefail && xcodebuild build -scheme FastRTPSSwift -destination "${{ matrix.destination }}" | xcpretty
test:
name: Test
runs-on: macOS-13
steps:
- name: Select Xcode
run: |
xcodes select 15.2
- name: Check XCode Version
run: xcodebuild -version
- name: Checkout
uses: actions/checkout@v4
- name: macOS Native build & test
run: swift test