From a617b13e18661cd7f78754cc73e038b4d881a0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mat=C4=9Bj=C4=8Dek?= Date: Tue, 17 Dec 2024 17:29:45 +0100 Subject: [PATCH] Created linux workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Because Eclipse Jenkins CI does not support TestContainers while GitHub Actions do. - Synced Ubuntu and Windows workflow Signed-off-by: David Matějček --- .github/workflows/build-linux.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/build-windows.yml | 8 ++++---- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build-linux.yml diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 00000000000..8a409c6c319 --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -0,0 +1,29 @@ + +name: Build on Ubuntu + +on: + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + - name: Install Maven + run: | + curl -s -S -o ./apache-maven-3.9.9-bin.zip https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.zip + unzip -q ./apache-maven-3.9.9-bin.zip + - name: Build with Maven + # qa skips documentation - we check it on Jenkins CI + # We skip checkstyle too - we check it on Jenkins CI + run: ./apache-maven-3.9.9/bin/mvn -B -e -ntp install -Pstaging -Pqa '-Dcheckstyle.skip=true' + diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7579d9034f5..962f1065ade 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -1,5 +1,5 @@ -name: Build on Windows 2022 +name: Build on Windows on: pull_request: @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 21 + - name: Set up JDK uses: actions/setup-java@v4 with: java-version: '21' @@ -20,10 +20,10 @@ jobs: cache: maven - name: Install Maven run: | - curl.exe -o ./apache-maven-3.9.9-bin.zip https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.zip + curl.exe -s -S -o ./apache-maven-3.9.9-bin.zip https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.zip tar -xf ./apache-maven-3.9.9-bin.zip - name: Build with Maven # qa skips documentation - we check it on Jenkins CI # We skip checkstyle too - we check it on Jenkins CI - run: ./apache-maven-3.9.9/bin/mvn -B -e clean install -Pstaging -Pqa '-Dcheckstyle.skip=true' + run: ./apache-maven-3.9.9/bin/mvn -B -e -ntp install -Pstaging -Pqa '-Dcheckstyle.skip=true'