From 57a5a419ad7627b087eb3b5d9bea4248496be41e Mon Sep 17 00:00:00 2001 From: Mickael Istria Date: Fri, 28 Jul 2023 10:55:20 +0200 Subject: [PATCH] Create ci.yml to build with GitHub Actions --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 00000000000..e54756fc875 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: Continuous Integration +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: '**' + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + - name: Set up JDKs ☕ + uses: actions/setup-java@v3 + with: + java-version: | + 8 + 17 + 20 + mvn-toolchain-id: | + JavaSE-1.8 + JavaSE-17 + JavaSE-20 + distribution: 'temurin' + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.9.3 + - name: Build with Maven 🏗️ + run: | + mvn clean install -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99 && mvn -U clean verify --batch-mode --fail-at-end -Ptest-on-javase-20 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17,20 -Djdt.performance.asserts=disabled" -Dcbi-ecj-version=99.99