From 3167c58e555bfc9403403a5ccb28a13b5ae02870 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 17 Oct 2020 23:06:26 +0800 Subject: [PATCH] bump Buck to 2020.09.09.01 --- .github/workflows/build.yaml | 26 ++++++++++++++++++++++++++ Dockerfile | 4 ++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..5b2d35e --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +name: Build Docker image + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-20.04 + env: + IMAGE_TAG: react-native + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build Docker image + run: docker build --tag $IMAGE_TAG . + + - name: Checkout React Native + uses: actions/checkout@v2 + with: + repository: facebook/react-native + path: react-native + + - name: Build React Native + run: | + docker run --rm -v "${GITHUB_WORKSPACE}/react-native/":/pwd -w /pwd $IMAGE_TAG /bin/sh -c \ + "yarn install && ./gradlew --no-daemon :packages:rn-tester:android:app:assembleRelease && ./scripts/circleci/buck_fetch.sh" diff --git a/Dockerfile b/Dockerfile index a2764c8..96dee08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,10 @@ LABEL Description="This image provides a base Android development environment fo ENV DEBIAN_FRONTEND=noninteractive # set default build arguments -ARG SDK_VERSION=commandlinetools-linux-6514223_latest.zip +ARG SDK_VERSION=commandlinetools-linux-6609375_latest.zip ARG ANDROID_BUILD_VERSION=29 ARG ANDROID_TOOLS_VERSION=29.0.3 -ARG BUCK_VERSION=2020.05.14.01 +ARG BUCK_VERSION=2020.09.09.01 ARG NDK_VERSION=20.1.5948944 ARG NODE_VERSION=12.x ARG WATCHMAN_VERSION=4.9.0