Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/scripts/build-android.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off
setlocal
rem subst the workspace to a short drive to avoid Windows MAX_PATH in
rem CMake-generated object file names from autolinked codegen.
subst W: "%GITHUB_WORKSPACE%" || exit /b 1
cd /D W:\example\android || exit /b 1
call gradlew.bat assembleDebug -PnewArchEnabled=%1
12 changes: 12 additions & 0 deletions .github/scripts/build-android.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail

new_arch="${1:-false}"

if [[ "${RUNNER_OS:-}" == "Windows" ]]; then
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cmd //c "$(cygpath -w "$script_dir/build-android.cmd")" "$new_arch"
else
cd example/android
./gradlew assembleDebug -PnewArchEnabled="${new_arch}"
fi
24 changes: 18 additions & 6 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ on:

jobs:
android-build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
Expand All @@ -43,10 +50,16 @@ jobs:
run: yarn install
working-directory: example
- name: Build android example app with new arch disabled
run: ./gradlew assembleDebug -PnewArchEnabled=false
working-directory: example/android
run: ./.github/scripts/build-android.sh false
android-build-fabric:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
Expand All @@ -71,5 +84,4 @@ jobs:
run: yarn install
working-directory: example
- name: Build android example app with new arch enabled
run: ./gradlew assembleDebug -PnewArchEnabled=true
working-directory: example/android
run: ./.github/scripts/build-android.sh true
Loading