From 33ccfd976cbc5c4c89b1f9903fabdc3fe8e639dd Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 25 Mar 2024 21:28:13 +0800 Subject: [PATCH] Create ios.yml --- .github/workflows/ios.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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 000000000000..f118418c3730 --- /dev/null +++ b/.github/workflows/ios.yml @@ -0,0 +1,35 @@ +name: iOS + +on: + workflow_dispatch: + push: + paths: + - 'src/**' + - 'examples/**' + - '.github/workflows/android.yml' + pull_request: + paths: + - 'src/**' + - 'examples/**' + - '.github/workflows/android.yml' + release: + types: [published] + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Build Xcode15 project + run: | + cd projects/Xcode15 + curl -L https://github.com/raysan5/raylib/files/14743869/libEGL.xcframework.zip --output libEGL.xcframework.zip + curl -L https://github.com/raysan5/raylib/files/14743873/libGLESv2.xcframework.zip --output libGLESv2.xcframework.zip + unzip libEGL.xcframework.zip -d libEGL.xcframework + unzip libGLESv2.xcframework.zip -d libGLESv2.xcframework + rm libEGL.xcframework.zip + rm libGLESv2.xcframework.zip + ls + xcodebuild -project raylib.xcodeproj -scheme raylib -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12,OS=15.0' build +