2021-02-01 22:51:54 +00:00
|
|
|
name: PR build check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check_wrapper:
|
|
|
|
name: Validate Gradle Wrapper
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
2021-02-13 00:05:45 +00:00
|
|
|
build_multisrc:
|
|
|
|
name: Build multisrc modules
|
2021-02-01 22:51:54 +00:00
|
|
|
needs: check_wrapper
|
|
|
|
runs-on: ubuntu-latest
|
2021-02-13 00:05:45 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-20 22:42:33 +00:00
|
|
|
lang: [all, en, ar, ca, de, es, fr, id, it, ja, ko, pt, ru, th, tr, vi, zh, bg, hi, pl]
|
2021-02-01 23:15:27 +00:00
|
|
|
steps:
|
2021-02-01 22:51:54 +00:00
|
|
|
- name: Checkout PR
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-06-20 21:44:42 +00:00
|
|
|
- name: Set up JDK
|
2021-02-01 22:51:54 +00:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
run: |
|
|
|
|
mkdir -p ~/.gradle
|
|
|
|
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
2021-02-08 14:08:45 +00:00
|
|
|
- name: Generate sources from the multi-source library
|
2021-02-06 22:47:09 +00:00
|
|
|
uses: eskatos/gradle-command-action@v1
|
2021-02-13 00:05:45 +00:00
|
|
|
env:
|
|
|
|
CI_MULTISRC: "true"
|
2021-02-06 22:47:09 +00:00
|
|
|
with:
|
2021-03-09 23:02:17 +00:00
|
|
|
arguments: :multisrc:generateExtensions
|
2021-02-06 22:47:09 +00:00
|
|
|
wrapper-cache-enabled: true
|
|
|
|
dependencies-cache-enabled: true
|
|
|
|
configuration-cache-enabled: true
|
|
|
|
|
2021-02-13 00:05:45 +00:00
|
|
|
- name: Build "${{ matrix.lang }}" extensions
|
2021-02-01 22:51:54 +00:00
|
|
|
uses: eskatos/gradle-command-action@v1
|
2021-02-13 00:05:45 +00:00
|
|
|
env:
|
|
|
|
CI_MULTISRC: "true"
|
|
|
|
CI_MATRIX_LANG: ${{ matrix.lang }}
|
2021-02-01 22:51:54 +00:00
|
|
|
with:
|
|
|
|
arguments: assembleRelease
|
|
|
|
wrapper-cache-enabled: true
|
|
|
|
dependencies-cache-enabled: true
|
|
|
|
configuration-cache-enabled: true
|
2021-02-13 00:05:45 +00:00
|
|
|
|
|
|
|
build_individual:
|
|
|
|
name: Build individual modules
|
|
|
|
needs: check_wrapper
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-20 22:42:33 +00:00
|
|
|
lang: [all, en, ar, ca, de, es, fr, id, it, ja, ko, pt, ru, th, tr, vi, zh, bg, hi, pl]
|
2021-02-13 00:05:45 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout PR
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-06-20 21:44:42 +00:00
|
|
|
- name: Set up JDK
|
2021-02-13 00:05:45 +00:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
run: |
|
|
|
|
mkdir -p ~/.gradle
|
|
|
|
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
|
|
|
- name: Build "${{ matrix.lang }}" extensions
|
|
|
|
uses: eskatos/gradle-command-action@v1
|
|
|
|
env:
|
|
|
|
CI_MULTISRC: "false"
|
|
|
|
CI_MATRIX_LANG: ${{ matrix.lang }}
|
|
|
|
with:
|
|
|
|
arguments: assembleRelease
|
|
|
|
wrapper-cache-enabled: true
|
|
|
|
dependencies-cache-enabled: true
|
2021-03-09 23:02:17 +00:00
|
|
|
configuration-cache-enabled: true
|