From 4980f392b055aa348bb74646753e7ba588e3dc4a Mon Sep 17 00:00:00 2001 From: chmjkb Date: Wed, 20 Nov 2024 13:45:01 +0100 Subject: [PATCH] ci: add llama example build (iOS) --- .github/workflows/build-ios-llama-example.yml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build-ios-llama-example.yml diff --git a/.github/workflows/build-ios-llama-example.yml b/.github/workflows/build-ios-llama-example.yml new file mode 100644 index 0000000..ee37102 --- /dev/null +++ b/.github/workflows/build-ios-llama-example.yml @@ -0,0 +1,45 @@ +name: Example app iOS build check +on: + push: + branches: + - main + paths: + - '.github/workflows/build-ios-llama-example.yml' + - '*.podspec' + - 'examples/llama/ios/**' + - 'examples/llama/package.json' + pull_request: + paths: + - '.github/workflows/build-ios-llama-example.yml' + - '*.podspec' + - 'examples/llama/ios/**' + - 'examples/llama/package.json' +jobs: + build: + if: github.repository == 'software-mansion/react-native-executorch' + name: "Example app iOS build check" + runs-on: macos-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install node dependencies + working-directory: examples/llama + run: yarn + + - name: Install pods + working-directory: examples/llama/ios + run: pod install + + - name: Build app + working-directory: examples/llama/ios + run: | + set -o pipefail && xcodebuild \ + -workspace llama.xcworkspace \ + -scheme llama \ + -sdk iphonesimulator \ + -configuration Debug \ + -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ + build \ + CODE_SIGNING_ALLOWED=NO | xcbeautify + \ No newline at end of file