Update spring cloud #1132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
repository_dispatch: | |
types: update-event | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
non_module_java: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
java: [ '8' ] | |
architecture: [ 'x64', 'x86' ] | |
os: [ ubuntu-latest, windows-latest ] | |
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }} with ${{ matrix.os }} | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: "recursive" | |
fetch-depth: 2 | |
- name: Setup JDK ${{ matrix.java }} | |
uses: actions/setup-java@v1 | |
with: | |
java-package: jdk | |
java-version: ${{ matrix.java }} | |
architecture: ${{ matrix.architecture }} | |
- name: Cache Maven repository | |
uses: actions/cache@v2.1.1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-${{ matrix.java }}-maven-${{ hashFiles('**/*pom*.xml') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.java }}-maven- | |
- name: Make Maven Wrapper executable | |
if: contains(matrix.os, 'win') == false | |
run: | | |
chmod +x ./mvnw | |
- name: Build with Maven | |
timeout-minutes: 20 | |
run: | | |
./mvnw clean package --file pom.xml --errors --batch-mode --lax-checksums -D"file.encoding"=UTF-8 -DskipTests=true -DprofileIdEnabled=true -P"non_module_java","test-jar","dev" | |
module_java: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
java: [ '11', '12', '13', '14', '15-ea', '16-ea' ] | |
architecture: [ 'x64', 'x86' ] | |
os: [ ubuntu-latest, windows-latest ] | |
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }} with ${{ matrix.os }} | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: "recursive" | |
fetch-depth: 2 | |
- name: Setup JDK ${{ matrix.java }} | |
uses: actions/setup-java@v1 | |
with: | |
java-package: jdk | |
java-version: ${{ matrix.java }} | |
architecture: ${{ matrix.architecture }} | |
- name: Cache Maven repository | |
uses: actions/cache@v2.1.1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-${{ matrix.java }}-maven-${{ hashFiles('**/*pom*.xml') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.java }}-maven- | |
- name: Make Maven Wrapper executable | |
if: contains(matrix.os, 'win') == false | |
run: | | |
chmod +x ./mvnw | |
- name: Build with Maven | |
timeout-minutes: 20 | |
run: | | |
./mvnw clean package --file pom.xml --errors --batch-mode --lax-checksums -D"file.encoding"=UTF-8 -DskipTests=true -DprofileIdEnabled=true -P"module_java","test-jar","dev" | |
module_zing_java: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
java: [ '11' ] | |
architecture: [ 'x64', 'x86' ] | |
os: [ ubuntu-latest ] | |
name: Build with Zing JDK ${{ matrix.java }} on ${{ matrix.architecture }} with ${{ matrix.os }} | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: "recursive" | |
fetch-depth: 2 | |
- name: Setup JDK ${{ matrix.java }} | |
uses: zing-actions/setup-java@v1 | |
with: | |
java-package: jdk | |
java-version: ${{ matrix.java }} | |
architecture: ${{ matrix.architecture }} | |
- name: Make Maven Wrapper executable | |
if: contains(matrix.os, 'win') == false | |
run: | | |
chmod +x ./mvnw | |
- name: Build with Maven | |
timeout-minutes: 20 | |
run: | | |
./mvnw clean package --file pom.xml --errors --batch-mode --lax-checksums -DskipTests=true -P"module_java","test-jar","dev" |