forked from leotm/react-native-template-new-architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump followed-up in: leotm#918 * Remove ccache-action * Upgrade Android CI from ubuntu-20.04 to ubuntu-22.04 * Remove JDK 18 temurin setup * Remove NDK 25 setup * Remove CMake 3.23.1 setup * Rename gradle.yml to android.yml
- Loading branch information
Showing
1 changed file
with
1 addition
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,49 +23,17 @@ on: | |
jobs: | ||
build-android: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
|
||
# Local job envs | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
|
||
- name: Set up JDK 18 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 18 | ||
distribution: temurin | ||
cache: 'gradle' | ||
|
||
# (Standalone toolchains obsolete) | ||
# Ubuntu 20.04: r21e, r22, r23b, Custom: r24+ | ||
- name: Set up NDK r25 LTS | ||
uses: nttld/[email protected] | ||
with: | ||
ndk-version: r25 | ||
|
||
# - name: Or manually set NDK X env vars | ||
# run: | | ||
# export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/x.x.x | ||
# export ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/x.x.x | ||
|
||
- name: Install all project dependencies | ||
run: yarn | ||
|
||
- name: Get and extract cmake-3.23.1-linux-x86_64.tar.gz to /usr/local/lib/android/sdk | ||
run: | | ||
wget https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-linux-x86_64.tar.gz | ||
tar xzf cmake-3.23.1-linux-x86_64.tar.gz | ||
rm -rf cmake-3.23.1-linux-x86_64.tar.gz | ||
mkdir -p /usr/local/lib/android/sdk/cmake/3.22.1 | ||
cp -rf cmake-3.23.1-linux-x86_64/* /usr/local/lib/android/sdk/cmake/3.22.1 | ||
cd cmake-3.23.1-linux-x86_64 | ||
./bin/cmake --version | ||
- name: Build application Debug APK with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
|