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 27
27
uses : docker/metadata-action@v4
28
28
with :
29
29
flavor : |
30
- latest=false
30
+ latest=auto
31
31
images : |
32
32
reactnativecommunity/react-native-android
33
33
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 \
51
51
sudo \
52
52
ninja-build \
53
53
zip \
54
+ ccache \
54
55
# Dev libraries requested by Hermes
55
56
libicu-dev \
56
57
# Dev dependencies required by linters
@@ -81,3 +82,6 @@ RUN curl -sS https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sdk
81
82
"ndk;$NDK_VERSION" \
82
83
&& rm -rf ${ANDROID_HOME}/.android \
83
84
&& 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