From 4d09cc9dc1d9524aa06517745b0aa89a78e51630 Mon Sep 17 00:00:00 2001 From: chmjkb Date: Tue, 11 Mar 2025 09:55:41 +0100 Subject: [PATCH 1/3] ci: Prevent duplicate workflow runs in iOS llama example --- .github/workflows/build-ios-llama-example.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-ios-llama-example.yml b/.github/workflows/build-ios-llama-example.yml index 19ece36b..224dde91 100644 --- a/.github/workflows/build-ios-llama-example.yml +++ b/.github/workflows/build-ios-llama-example.yml @@ -1,4 +1,4 @@ -name: Example app iOS build check +name: Llama Example app iOS build check on: push: branches: @@ -19,6 +19,9 @@ jobs: if: github.repository == 'software-mansion/react-native-executorch' name: 'Example app iOS build check' runs-on: macos-latest + concurrency: + group: ios-${{ github.ref }} + cancel-in-progress: true steps: - name: Check out Git repository uses: actions/checkout@v4 From 0cda789fafb5eccec505714db043482f3baab76d Mon Sep 17 00:00:00 2001 From: chmjkb Date: Tue, 11 Mar 2025 09:58:32 +0100 Subject: [PATCH 2/3] ci: Add Llama demo app build for Android --- .../workflows/build-android-llama-example.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build-android-llama-example.yml diff --git a/.github/workflows/build-android-llama-example.yml b/.github/workflows/build-android-llama-example.yml new file mode 100644 index 00000000..9436e6ea --- /dev/null +++ b/.github/workflows/build-android-llama-example.yml @@ -0,0 +1,43 @@ +name: Llama Example app Android build check +on: + pull_request: + paths: + - .github/workflows/build-android-llama-example.yml + - android/** + - third-party/android/** + - examples/llama/package.json + - examples/llama/android/** + push: + branches: + - main + paths: + - .github/workflows/build-android-llama-example.yml + - android/** + - third-party/android/** + - examples/llama/package.json + - examples/llama/android/** +jobs: + build: + if: github.repository == 'software-mansion/react-native-executorch' + runs-on: ubuntu-latest + env: + WORKING_DIRECTORY: examples/llama + concurrency: + group: android-${{ github.ref }} + cancel-in-progress: true + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Setup Java 17 + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + + - name: Install node dependencies + run: yarn install --immutable + + - name: Build app + working-directory: ${{ env.WORKING_DIRECTORY }}/android + run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a From b68f62a481aa4fd19c0d4dd9257eb376b3be537f Mon Sep 17 00:00:00 2001 From: chmjkb Date: Tue, 11 Mar 2025 10:28:02 +0100 Subject: [PATCH 3/3] chore: remove redudant empty lines, remove iOS build name field --- .github/workflows/build-android-llama-example.yml | 3 --- .github/workflows/build-ios-llama-example.yml | 4 ---- 2 files changed, 7 deletions(-) diff --git a/.github/workflows/build-android-llama-example.yml b/.github/workflows/build-android-llama-example.yml index 9436e6ea..6549fcab 100644 --- a/.github/workflows/build-android-llama-example.yml +++ b/.github/workflows/build-android-llama-example.yml @@ -28,16 +28,13 @@ jobs: steps: - name: Check out Git repository uses: actions/checkout@v4 - - name: Setup Java 17 uses: actions/setup-java@v3 with: distribution: 'zulu' java-version: 17 - - name: Install node dependencies run: yarn install --immutable - - name: Build app working-directory: ${{ env.WORKING_DIRECTORY }}/android run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a diff --git a/.github/workflows/build-ios-llama-example.yml b/.github/workflows/build-ios-llama-example.yml index 224dde91..f9f76458 100644 --- a/.github/workflows/build-ios-llama-example.yml +++ b/.github/workflows/build-ios-llama-example.yml @@ -17,7 +17,6 @@ on: jobs: build: if: github.repository == 'software-mansion/react-native-executorch' - name: 'Example app iOS build check' runs-on: macos-latest concurrency: group: ios-${{ github.ref }} @@ -25,15 +24,12 @@ jobs: 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: |