Skip to content

Commit

Permalink
Add Xcode CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnr committed Mar 20, 2021
1 parent 6312a09 commit 5f9a3d8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ruby.yml
Expand Up @@ -20,10 +20,6 @@ jobs:
if: matrix.platform == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev libgl1-mesa-dev libopenal-dev libgmp-dev libfontconfig1-dev xvfb

- name: Set up pulseaudio
if: matrix.platform == 'ubuntu-latest'
run: sudo usermod -a -G audio $USER

- name: Install dependencies (macOS)
if: matrix.platform == 'macos-latest'
run: brew install sdl2
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/xcode.yml
@@ -0,0 +1,29 @@
name: Xcode

on:
push:
branches: [master]
pull_request:

env:
BUILD_TYPE: Debug

jobs:
build:
strategy:
matrix:
platform: [macos-latest, macos-10.15]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2

- name: Install dependencies (macOS)
if: matrix.platform == 'macos-latest' || matrix.platform == 'macos-10.15'
run: brew install sdl2 cocoapods

- name: Build Tutorial for macOS
run: cd examples/Tutorial && pod install && xcodebuild build -workspace Tutorial.xcworkspace -scheme Tutorial

- name: Build Tutorial for iOS
run: cd ../Tutorial-Touch && pod install && xcodebuild build -workspace Tutorial-Touch.xcworkspace -scheme Tutorial-Touch -destination 'platform=iOS Simulator,name=iPad Air'

0 comments on commit 5f9a3d8

Please sign in to comment.