-
Notifications
You must be signed in to change notification settings - Fork 151
48 lines (45 loc) · 1.16 KB
/
test_apps.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: TestApps
on:
push:
branches: [ main ]
paths:
- 'Sources/**'
- 'TestApps/**'
- '.github/workflows/test_apps.yml'
pull_request:
branches: [ main ]
paths:
- 'Sources/**'
- 'TestApps/**'
- '.github/workflows/test_apps.yml'
# Also allow manual triggering from the github UX to revalidate things.
workflow_dispatch:
jobs:
xcodebuild:
runs-on: macos-15
strategy:
fail-fast: false
matrix:
# iOS runs into codesigning requirements to build applications, haven't
# found a good way to suppress that and just ensure things build.
#PLATFORM: ["iOS", "macOS"]
PLATFORM: ["macOS"]
CONFIGURATION: ["Debug", "Release"]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
set -eu
case "${{matrix.PLATFORM}}" in
iOS)
XCODE_SCHEME="iOSTestApp"
;;
macOS)
XCODE_SCHEME="OSXTestApp"
;;
esac
xcodebuild \
-project TestApps/TestApps.xcodeproj \
-scheme "${XCODE_SCHEME}" \
-configuration ${{ matrix.CONFIGURATION }} \
build