From 5cb85d611ddd3278578db57ef0cd51427d8bd695 Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[EMAIL REDACTED]>
Date: Wed, 24 Nov 2021 22:21:48 +0300
Subject: [PATCH] CI: Add iOS and tvOS builds
---
.github/workflows/ios.yml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 .github/workflows/ios.yml
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
new file mode 100644
index 00000000000..45bbe3c51c2
--- /dev/null
+++ b/.github/workflows/ios.yml
@@ -0,0 +1,20 @@
+name: Build (iOS/tvOS)
+
+on: [push, pull_request]
+
+jobs:
+ Build:
+ name: ${{ matrix.platform.name }}
+ runs-on: macos-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ platform:
+ - { name: iOS, target: Static Library-iOS, sdk: iphoneos }
+ - { name: tvOS, target: Static Library-tvOS, sdk: appletvos }
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build
+ run: xcodebuild -project Xcode/SDL/SDL.xcodeproj -target '${{ matrix.platform.target }}' -configuration Release -sdk ${{ matrix.platform.sdk }} clean build
\ No newline at end of file