Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GitHub Actions Java w Gradle debug workflow on Ubuntu 20.04 for AGP 7.1.1+ resolving ReactAndroid:configureNdkBuildDebug #276

Merged
merged 133 commits into from
Apr 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
1520d40
Create gradle.yml
leotm Jan 15, 2022
0507964
Update gradle.yml
leotm Jan 15, 2022
4b849ff
Update gradle.yml
leotm Jan 15, 2022
059f869
Update gradle.yml
leotm Jan 15, 2022
d56ddb2
Merge remote-tracking branch 'origin/master' into ci/java-w-gradle
leotm Jan 15, 2022
d748ffb
Update gradle.yml
leotm Mar 24, 2022
542131c
Revert "Update gradle.yml"
leotm Apr 5, 2022
32c91fe
Merge remote-tracking branch 'origin/master' into ci/java-w-gradle
leotm Apr 5, 2022
3e46ce3
Revert Android SDK Build-Tools to 30.0.3
leotm Apr 5, 2022
b1522c4
Revert AGP to 7.2.0-alpha07
leotm Apr 5, 2022
2ebe3a7
Revert "Update Gradle/wrapper to 7.5 nightly pre-April Fools (2022 03…
leotm Apr 5, 2022
94de417
Revert Android NDK to 21.4.7075529
leotm Apr 5, 2022
8d9a251
Update gradle.yml
leotm Apr 5, 2022
76eeeca
Update gradle.yml
leotm Apr 5, 2022
6943f9b
Update gradle.yml
leotm Apr 5, 2022
bdd989a
Update gradle.yml
leotm Apr 5, 2022
7a90c64
Update build.gradle
leotm Apr 5, 2022
8909b85
Update gradle-wrapper.properties
leotm Apr 5, 2022
2ecb05f
Update gradle.yml
leotm Apr 5, 2022
50fbd78
Update gradle.yml
leotm Apr 5, 2022
c6f78ad
Update gradle.yml
leotm Apr 5, 2022
8f2db08
Update gradle.yml
leotm Apr 5, 2022
4b12c27
Merge remote-tracking branch 'origin/master' into ci/java-w-gradle
leotm Apr 6, 2022
d75b2e0
Remove react-native-screens
leotm Apr 7, 2022
e97537b
Remove react-native-safe-area-context
leotm Apr 7, 2022
25acd6c
Revert Android SDK Build-Tools to 30.0.2
leotm Apr 7, 2022
77f6b6e
Update Android SDK Platform to 30
leotm Apr 7, 2022
3647f0e
Add react-native info debug logs
leotm Apr 7, 2022
306beda
Remove failing arch arm64-v8a on NDK 21.4.7075529
leotm Apr 7, 2022
1967e8f
Update gradle.yml
leotm Apr 7, 2022
dfda127
Revert "Remove failing arch arm64-v8a on NDK 21.4.7075529"
leotm Apr 7, 2022
ee24049
Add missing cd's
leotm Apr 7, 2022
a564bd2
Clean only x86_64 with CLI override
leotm Apr 7, 2022
ae8a622
Update gradle.yml for more debugging
leotm Apr 7, 2022
ba0bc18
Check AGP 4.2.2
leotm Apr 11, 2022
8f54248
Revert "Check AGP 4.2.2"
leotm Apr 11, 2022
174b48b
Try React Native nightly release
leotm Apr 12, 2022
749431c
Merge branch 'master' into ci/java-w-gradle
leotm Apr 12, 2022
a6e2b4e
Update @swc-core Yarn cache from linux-arm64 to darwin-arm64
leotm Apr 12, 2022
6c1ccd1
Revert Android SDK and Build-Tools to 31
leotm Apr 12, 2022
33f8ea0
Revert "Try React Native nightly release"
leotm Apr 12, 2022
11f7768
Update gradle.yml
leotm Apr 12, 2022
f78e9f6
Update build.gradle
leotm Apr 12, 2022
1c418af
Update build.gradle
leotm Apr 12, 2022
87646c9
Update build.gradle
leotm Apr 12, 2022
5c103f8
Update gradle.yml
leotm Apr 12, 2022
387bcc6
Update gradle.yml
leotm Apr 12, 2022
81c24f7
Update gradle.yml
leotm Apr 12, 2022
6142b9a
Update gradle.yml
leotm Apr 12, 2022
3a60bd6
Update build.gradle
leotm Apr 12, 2022
ddad3aa
Update build.gradle
leotm Apr 12, 2022
d6b0491
Update build.gradle
leotm Apr 12, 2022
f033743
Update gradle.yml
leotm Apr 12, 2022
8dcf4c7
Update gradle.yml
leotm Apr 12, 2022
0b7fd9a
Update gradle.yml
leotm Apr 12, 2022
81f4320
Update gradle.yml
leotm Apr 12, 2022
06c07b3
Update gradle.yml
leotm Apr 12, 2022
5854c52
Update gradle.yml
leotm Apr 12, 2022
55e5616
Update gradle.yml
leotm Apr 12, 2022
fc6b936
Update gradle.yml
leotm Apr 12, 2022
df4b49b
Update gradle.yml
leotm Apr 13, 2022
0dec913
Update gradle.yml
leotm Apr 13, 2022
18c388c
Update gradle.yml
leotm Apr 13, 2022
9b0ea6c
Update gradle.yml
leotm Apr 13, 2022
4f971a7
Try React Native nightly release
leotm Apr 13, 2022
03cec92
Update build.gradle
leotm Apr 13, 2022
1dfb8fc
Update build.gradle
leotm Apr 13, 2022
c8660ae
Revert "Update build.gradle"
leotm Apr 13, 2022
217007d
Revert "Try React Native nightly release"
leotm Apr 13, 2022
be08d68
Update gradle.yml
leotm Apr 13, 2022
14f03b1
Update gradle.yml
leotm Apr 13, 2022
beea186
Upgrade RN to 0.68.1 except pods
leotm Apr 13, 2022
5863a50
Merge remote-tracking branch 'origin/master' into ci/java-w-gradle
leotm Apr 13, 2022
94484f0
Upgrade build.gradle
leotm Apr 13, 2022
e0c65df
Update build.gradle
leotm Apr 13, 2022
54371f8
Update build.gradle
leotm Apr 13, 2022
e744c14
Update build.gradle
leotm Apr 13, 2022
62c75cc
Update build.gradle
leotm Apr 13, 2022
31a8604
Update build.gradle
leotm Apr 13, 2022
002fdb3
Update build.gradle
leotm Apr 13, 2022
c26c281
Revert "Update build.gradle"
leotm Apr 18, 2022
97ae3bd
Merge remote-tracking branch 'origin/master' into ci/java-w-gradle
leotm Apr 18, 2022
0dadb65
Update gradle.yml
leotm Apr 18, 2022
2fd9a07
Update gradle.yml
leotm Apr 19, 2022
95c5ed3
Remove react-native-safe-area-context
leotm Apr 19, 2022
c51cdec
Update build.gradle
leotm Apr 19, 2022
7974893
Update build.gradle
leotm Apr 19, 2022
339d4ee
Update gradle.yml
leotm Apr 19, 2022
7da96c7
Remove react-native-screens
leotm Apr 19, 2022
5b4665c
Update gradle.yml
leotm Apr 19, 2022
42e8e41
Update gradle.yml
leotm Apr 19, 2022
015f1a1
Revert "Update gradle.yml"
leotm Apr 19, 2022
384b38e
Set ABI to x86_64
leotm Apr 20, 2022
09e0f99
Set app/build.gradle ndkVersion to 25.0.8221429 rc2
leotm Apr 20, 2022
6723903
Revert "Set app/build.gradle ndkVersion to 25.0.8221429 rc2"
leotm Apr 20, 2022
c261a5e
Revert to app/build.gradle to depend on build-variant preBuild tasks
leotm Apr 20, 2022
834a249
Set AGP to 7.1.1
leotm Apr 20, 2022
f7596ea
Try RN nightly
leotm Apr 20, 2022
3b4239d
Revert "Set AGP to 7.1.1"
leotm Apr 20, 2022
423a18d
Revert "Revert to app/build.gradle to depend on build-variant preBuil…
leotm Apr 20, 2022
ff802d0
Revert "Revert "Set AGP to 7.1.1""
leotm Apr 20, 2022
9a4832e
Always try build Release after Debug
leotm Apr 20, 2022
d2a2532
Revert "Try RN nightly"
leotm Apr 20, 2022
2a10ba5
Revert "Set AGP to 7.1.1"
leotm Apr 20, 2022
89188a8
Add back running builds twice
leotm Apr 20, 2022
6dd041c
Revert to app/build.gradle to depend on build-variant preBuild tasks
leotm Apr 20, 2022
9c30c4d
Update gradle.yml
leotm Apr 20, 2022
d4cadad
Update gradle.yml
leotm Apr 20, 2022
b62fb68
Update gradle.properties
leotm Apr 20, 2022
8dcdddc
Update gradle.properties
leotm Apr 20, 2022
1f8f435
Update gradle.yml
leotm Apr 20, 2022
9449c69
Test react-native#200488 w AGP 7.1.1 on Ubuntu
leotm Apr 20, 2022
63625b6
Remove @react-native-community/datetimepicker
leotm Apr 20, 2022
6b25d8d
Revert "Remove @react-native-community/datetimepicker"
leotm Apr 20, 2022
9ecb688
Revert "Test react-native#200488 w AGP 7.1.1 on Ubuntu"
leotm Apr 20, 2022
53dfb5a
Reset AGP to 7.1.1
leotm Apr 20, 2022
c972bac
Re-enable all 4 default ABIs
leotm Apr 20, 2022
a19bff1
Update gradle.yml
leotm Apr 20, 2022
117196d
Update gradle.yml
leotm Apr 25, 2022
76c4435
Merge branch 'master' into ci/java-w-gradle
leotm Apr 25, 2022
badc73a
Update gradle.properties
leotm Apr 25, 2022
2c36078
Update gradlew
leotm Apr 25, 2022
f901af1
Update gradle-wrapper.properties
leotm Apr 25, 2022
a3fb1c6
Update build.gradle
leotm Apr 25, 2022
bc4c5bb
Update gradle.yml
leotm Apr 25, 2022
af74cdc
Update gradle.yml
leotm Apr 25, 2022
4fb6919
Update build.gradle
leotm Apr 25, 2022
fc60bcf
Update gradle.yml
leotm Apr 25, 2022
f51b2e5
Update gradle.yml
leotm Apr 26, 2022
e1b735e
Revert "Remove react-native-safe-area-context"
leotm Apr 26, 2022
f01e5e5
Revert "Remove react-native-screens"
leotm Apr 26, 2022
fdf4e57
Remove react-native-screens until Gradle clean task resolved
leotm Apr 26, 2022
0cc4529
Merge branch 'master' into ci/java-w-gradle
leotm Apr 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Global envs
# env:
# ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/x.x.x
# ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/x.x.x

# TODO: Avoid brutally editing/setting ndk.dir in local.properties

jobs:
build-android:

runs-on: ubuntu-latest

# Local job envs

steps:

- uses: actions/checkout@v3

- name: Set up JDK 18
uses: actions/setup-java@v3.1.1
with:
java-version: 18
distribution: temurin

# (Standalone toolchains obsolete)
# Ubuntu 20.04: r21e, r22, r23b, Custom: r24+
- name: Set up NDK 25 Beta 2
uses: nttld/setup-ndk@v1.0.6
with:
ndk-version: r25-beta2

# - 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

# Avoid poisoned cache problems
- name: Delete Android build pre-computed outputs
uses: gradle/gradle-build-action@v2.1.5
with:
arguments: clean
build-root-directory: android

- name: Build application Debug APK with Gradle
uses: gradle/gradle-build-action@v2.1.5
with:
arguments: assembleDebug
build-root-directory: android

# - name: Build project Make-based (not CMake)
# run: |
# /usr/local/lib/android/sdk/ndk/x.x.x/ndk-build
# NDK_PROJECT_PATH=null
# APP_BUILD_SCRIPT=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk
# NDK_APPLICATION_MK=/home/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/react-native/ReactAndroid/src/main/jni/Application.mk

# E2E Release APK for Detox per VM image architecture for AVD
# --active-arch-only
# - M1: -PreactNativeArchitectures=arm64-v8a
# - Other: -PreactNativeArchitectures=x86_64

# Release AAB/APK with all 4 ABIs
# - 1 AAB/APK, 1 upload
# - Consider ccache without matrix
# - Parallelise each ABI via matrix
# - Upload each ABI seperately
# - Consider sccache
# - Bigger organisation/team
# - Running more frequent builds
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.apache.tools.ant.taskdefs.condition.Os

buildscript {
ext {
buildToolsVersion = "33.0.0 rc2"
buildToolsVersion = "31.0.0"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
Expand Down
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
91 changes: 0 additions & 91 deletions android/gradlew.bat

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"react-native": "0.68.1",
"react-native-codegen": "0.0.14",
"react-native-safe-area-context": "4.2.5",
"react-native-screens": "3.13.1",
"react-query": "3.34.20"
},
"devDependencies": {
Expand Down
55 changes: 16 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8900,12 +8900,12 @@ __metadata:
languageName: node
linkType: hard

"bplist-parser@npm:0.3.0":
version: 0.3.0
resolution: "bplist-parser@npm:0.3.0"
"bplist-parser@npm:0.3.1":
version: 0.3.1
resolution: "bplist-parser@npm:0.3.1"
dependencies:
big-integer: 1.6.x
checksum: f1c49e4850eabda94b63a1764507cfa33c4e85f6289164964de06cb781d753cca63ccde4c2334999b6fd58ac85cab11f716a1e2fcdc31cd2213f718439c5383c
checksum: 7cabc5beadb7530f100cfdcce2b2f1d5d1674309b20f281b9b376022b2de55e86904598f1fd67254ec7f6ac1b74d67dc92c3445eb4cef5dec21c36c58d4a1106
languageName: node
linkType: hard

Expand Down Expand Up @@ -17562,7 +17562,6 @@ fsevents@^1.2.7:
react-native-gradle-plugin: 0.0.6
react-native-rename: 2.9.0
react-native-safe-area-context: 4.2.5
react-native-screens: 3.13.1
react-query: 3.34.20
react-test-renderer: experimental
reactotron-react-native: 5.0.1
Expand Down Expand Up @@ -18769,13 +18768,13 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"plist@npm:^3.0.4":
version: 3.0.4
resolution: "plist@npm:3.0.4"
"plist@npm:^3.0.5":
version: 3.0.5
resolution: "plist@npm:3.0.5"
dependencies:
base64-js: ^1.5.1
xmlbuilder: ^9.0.7
checksum: cb5883ed1b1aa227ddc5f99003750d312a8ac5cfd6f58d3ce0b24939255b175b54f25ebc6adcbd4266105ffd54f6831acb6cb06f529652bb3344215c10f5601b
checksum: f8b82816f66559965a4dabf139bd8dd95cdec7e51f32742bb353af276ea8228b9807113743b860eda3e867f6ed70d2bcbc1e135b3204d92b5c37ac765f68444e
languageName: node
linkType: hard

Expand Down Expand Up @@ -19513,12 +19512,12 @@ fsevents@^1.2.7:
linkType: hard

"react-devtools-core@npm:^4.23.0":
version: 4.23.0
resolution: "react-devtools-core@npm:4.23.0"
version: 4.24.4
resolution: "react-devtools-core@npm:4.24.4"
dependencies:
shell-quote: ^1.6.1
ws: ^7
checksum: 16c020149171c18039f366f43e305fdf5ec5991a40841e0ef83d5360b41c9a52cb072f22915b35732dd767954adbd65b6baf4f7f1bbcc785d9ffeb7f42bc1bb4
checksum: 550735b87870353d6a35386907da4c20bb35a4a49d57c906e9fd776c2d348945fcc3f3d8c14a1b30a6b247980be425dc2b5bbe8f98117250e78bf183577d9ac0
languageName: node
linkType: hard

Expand Down Expand Up @@ -19602,15 +19601,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"react-freeze@npm:^1.0.0":
version: 1.0.0
resolution: "react-freeze@npm:1.0.0"
peerDependencies:
react: ^17.0.0
checksum: c746b9d369c77296c277626cf7dd5ff24d49657e2f16412d14f845d1b428588184c0009374119f7dec24be37ab8c134d15aa4ecd57360c874880af508dcc577b
languageName: node
linkType: hard

"react-helmet-async@npm:^1.0.2":
version: 1.0.9
resolution: "react-helmet-async@npm:1.0.9"
Expand Down Expand Up @@ -19863,19 +19853,6 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"react-native-screens@npm:3.13.1":
version: 3.13.1
resolution: "react-native-screens@npm:3.13.1"
dependencies:
react-freeze: ^1.0.0
warn-once: ^0.1.0
peerDependencies:
react: "*"
react-native: "*"
checksum: aaab7071f65ea7b3be197417e073d0cad06c80fcb2a956faaeb020322c8002963f4d14ba96550484e96d156a48a29989c1485f47ec4bcd98c9701fe8de5c7cc1
languageName: node
linkType: hard

"react-native-swipe-gestures@npm:^1.0.5":
version: 1.0.5
resolution: "react-native-swipe-gestures@npm:1.0.5"
Expand Down Expand Up @@ -21569,13 +21546,13 @@ resolve@^2.0.0-next.3:
linkType: hard

"simple-plist@npm:^1.1.0":
version: 1.3.0
resolution: "simple-plist@npm:1.3.0"
version: 1.3.1
resolution: "simple-plist@npm:1.3.1"
dependencies:
bplist-creator: 0.1.0
bplist-parser: 0.3.0
plist: ^3.0.4
checksum: 60955ac24ce73b9c5ba71c450bc9b1b90b4e21e862735e4fd33073e451bcb2dc543bf2d364527ae78c6b76354eb5674c5a1163ec78428598fdd8fde60ce24bb3
bplist-parser: 0.3.1
plist: ^3.0.5
checksum: 3890b49db544096e6f35f53268901112be859c44b187528979f1a67e604b5b48b4cd6e5d6ee9e2e32aeb1e2535fe93e1cb102e2cf2bf5a37200d8884cb65b918
languageName: node
linkType: hard

Expand Down