From 1fcbb40ec38f5181dc3a44e186a3d3d59b9dd08b Mon Sep 17 00:00:00 2001 From: vrstanchev Date: Mon, 4 Nov 2024 21:28:02 +0200 Subject: [PATCH] Add GitHub Actions workflow for iOS build --- .github/workflows/build-ios.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index 6b3a8d1..73a4c63 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -20,10 +20,16 @@ jobs: run: | brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf + - name: Find SDL2 path + run: | + echo "SDL2 installed at:" $(brew --prefix sdl2) + ls $(brew --prefix sdl2)/include/SDL2 + - name: Compile the iOS App run: | mkdir -p build - clang -o build/MyIOSApp main.c -I/usr/local/include/SDL2 -L/usr/local/lib -lSDL2 -framework UIKit -framework Foundation -framework CoreGraphics + SDL2_PATH=$(brew --prefix sdl2) + clang -o build/MyIOSApp main.c -I$SDL2_PATH/include/SDL2 -L$SDL2_PATH/lib -lSDL2 -framework UIKit -framework Foundation -framework CoreGraphics - name: Upload the build artifact uses: actions/upload-artifact@v3