Skip to content

Commit

Permalink
Add GitHub Actions workflow for iOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
vrstanchev committed Nov 4, 2024
1 parent 07b1903 commit c63471f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ jobs:
- name: Compile the iOS App
run: |
mkdir -p build
SDK_PATH=$(xcrun --sdk iphoneos --show-sdk-path)
clang -v -o build/MyIOSApp main.c \
-I/opt/homebrew/opt/sdl2/include \
-L/opt/homebrew/opt/sdl2/lib \
-lSDL2 \
-framework UIKit \
-framework Foundation \
-framework CoreGraphics
-framework CoreGraphics \
-isysroot $SDK_PATH \
-arch arm64
- name: Upload the build artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit c63471f

Please sign in to comment.