Skip to content

Add GitHub Actions workflow for iOS build #1

Add GitHub Actions workflow for iOS build

Add GitHub Actions workflow for iOS build #1

Workflow file for this run

name: Build iOS App
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install SDL2
run: |
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
- name: Compile the iOS App
run: |
mkdir -p build
clang -o build/MyIOSApp main.c -F/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simulator.sdk/System/Library/Frameworks -framework SDL2 -framework UIKit -framework Foundation -framework CoreGraphics
- name: Upload the build artifact
uses: actions/upload-artifact@v2
with:
name: ios-app
path: build/MyIOSApp