From a95627a0d85137bcc41144925c6eaa3150355743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=99=9F=20Wu=20Sheng?= Date: Fri, 13 Dec 2019 00:10:10 +0800 Subject: [PATCH] Set up project builds on Windows and MacOS. (#4045) * Set up project build on Windows and MacOS. * Fix whitespace * Fix missing phrases. * Change command for windows. * Fix typo. * 1. Remove new local m2 repository 2. Remove CI-with-IT on Windows and MacOS due to no Docker service existing 3. Change mvnw to mvn on Windows. * Remove cache. * Merge into one command --- .github/workflows/ci-it.yaml | 43 ++++++++++++++++++++++++----- .github/workflows/e2e.yaml | 6 ---- .github/workflows/plugins-test.yaml | 6 ---- 3 files changed, 36 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci-it.yaml b/.github/workflows/ci-it.yaml index 87117ec7d..a1281c2ab 100644 --- a/.github/workflows/ci-it.yaml +++ b/.github/workflows/ci-it.yaml @@ -33,19 +33,48 @@ jobs: - uses: actions/checkout@v1 with: submodules: true - - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - uses: actions/setup-java@v1 with: java-version: 8 - name: 'Install & Test' run: | - export MAVEN_OPTS='-Dmaven.repo.local=.m2/repository -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' + export MAVEN_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' ./mvnw -P"agent,backend,ui,dist,CI-with-IT" clean cobertura:cobertura verify install javadoc:javadoc CODECOV_TOKEN="d2065307-8f01-4637-9715-2781ef096db7" bash <(curl -s https://codecov.io/bash) - name: 'Check Dependencies Licenses' run: tools/dependencies/check-LICENSE.sh + + CI-on-Windows: + runs-on: Windows-latest + timeout-minutes: 180 + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - uses: actions/setup-java@v1 + with: + java-version: 8 + - name: 'Install & Test' + run: | + set MAVEN_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' + ./mvnw -P"agent,backend,ui,dist" clean verify install + + + CI-on-MacOS: + runs-on: macos-latest + timeout-minutes: 180 + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - uses: actions/setup-java@v1 + with: + java-version: 8 + - name: 'Install & Test' + run: | + export MAVEN_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' + ./mvnw -P"agent,backend,ui,dist" clean verify install diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 88c101982..ca3b08742 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -25,12 +25,6 @@ jobs: - uses: actions/checkout@v1 with: submodules: true - - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - name: Set environment run: export MAVEN_OPTS='-Dmaven.repo.local=~/.m2/repository -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -Xmx3g' - name: Compile & Install Test Codes diff --git a/.github/workflows/plugins-test.yaml b/.github/workflows/plugins-test.yaml index d902865ee..15b9844ee 100644 --- a/.github/workflows/plugins-test.yaml +++ b/.github/workflows/plugins-test.yaml @@ -37,12 +37,6 @@ jobs: - uses: actions/checkout@v1 with: submodules: true - - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - uses: actions/setup-java@v1 with: java-version: 8