From ff84b03d6dd8d374f322a6bd4a2490f602bff8fb Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 17 Sep 2021 10:36:32 +0800 Subject: [PATCH 1/5] Create ci.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增ci --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..efdd7452 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +# This workflow will build a Java project with Ant +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant + +name: Java CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: CI + run: ./mvnw install -B -V -Dmaven.test.skip=true + - name: Java Doc + run: ./mvnw javadoc:javadoc From f4ef6e151b2834ee49b7071e5c25a406c2a2189f Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 17 Sep 2021 10:44:46 +0800 Subject: [PATCH 2/5] Update ci.yml ci --- .github/workflows/ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efdd7452..43bc6ff9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,18 @@ -# This workflow will build a Java project with Ant -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant +# +# Copyright 2009-2021 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# name: Java CI @@ -16,6 +29,10 @@ jobs: with: java-version: '8' distribution: 'adopt' + - name: Cache Maven + uses: actions/cache@v2.1.6 + with: + path: ~/.m2 - name: CI run: ./mvnw install -B -V -Dmaven.test.skip=true - name: Java Doc From 1925bba2e4edb4e433a726455d3a0eefb88510c8 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 17 Sep 2021 10:45:45 +0800 Subject: [PATCH 3/5] Update ci.yml ci --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43bc6ff9..4c33ea7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,9 +30,9 @@ jobs: java-version: '8' distribution: 'adopt' - name: Cache Maven - uses: actions/cache@v2.1.6 - with: - path: ~/.m2 + uses: actions/cache@v2.1.6 + with: + path: ~/.m2 - name: CI run: ./mvnw install -B -V -Dmaven.test.skip=true - name: Java Doc From cfaddb5c885fe257e8a70c28ebe2c6f5c683fed6 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 17 Sep 2021 10:50:18 +0800 Subject: [PATCH 4/5] Update ci.yml ci --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c33ea7e..986b8571 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,9 @@ jobs: uses: actions/cache@v2.1.6 with: path: ~/.m2 - - name: CI + - name: Chmod + run: chmod +x mvnw + - name: Maven Build run: ./mvnw install -B -V -Dmaven.test.skip=true - name: Java Doc run: ./mvnw javadoc:javadoc From d99651a6050592699e4b1be6023522eafb086127 Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 17 Sep 2021 10:56:20 +0800 Subject: [PATCH 5/5] Update ci.yml ci --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 986b8571..c9da457d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: uses: actions/cache@v2.1.6 with: path: ~/.m2 + key: m2 + restore-keys: m2 - name: Chmod run: chmod +x mvnw - name: Maven Build