Skip to content

Commit b44ef0e

Browse files
committed
Merge remote-tracking branch 'origin/main' into update-nodejs
# Conflicts: # Dockerfile
2 parents fb55bce + 4e9fa0f commit b44ef0e

File tree

4 files changed

+28
-51
lines changed

4 files changed

+28
-51
lines changed

.circleci/config.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Build Docker Image
16+
run: |
17+
docker build -t react-native-community/react-native .
18+
docker run --rm --name rn-env react-native-community/react-native /bin/sh -c "npx envinfo"
19+
- name: Checkout React Native
20+
run: git clone https://github.com/facebook/react-native.git
21+
- name: Build React Native
22+
run: |
23+
docker run --rm --ulimit nofile=10240 -v "$(pwd)/scripts/":/scripts -v "$(pwd)/react-native/":/react-native -w /react-native react-native-community/react-native /bin/sh -c "/scripts/test-react-native-setup.sh"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: docker/metadata-action@v4
2828
with:
2929
flavor: |
30-
latest=false
30+
latest=auto
3131
images: |
3232
reactnativecommunity/react-native-android
3333
tags: |

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
5151
sudo \
5252
ninja-build \
5353
zip \
54+
ccache \
5455
# Dev libraries requested by Hermes
5556
libicu-dev \
5657
# Dev dependencies required by linters
@@ -81,3 +82,6 @@ RUN curl -sS https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sdk
8182
"ndk;$NDK_VERSION" \
8283
&& rm -rf ${ANDROID_HOME}/.android \
8384
&& chmod 777 -R /opt/android
85+
86+
# Disable git safe directory check as this is causing GHA to fail on GH Runners
87+
RUN git config --global --add safe.directory '*'

0 commit comments

Comments
 (0)