File tree Expand file tree Collapse file tree 4 files changed +28
-51
lines changed
Expand file tree Collapse file tree 4 files changed +28
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff 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 '*'
You can’t perform that action at this time.
0 commit comments