From 7ac546247bfa2bb6e79f4df033c0864553a37de7 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 26 Sep 2024 19:20:28 +0200 Subject: [PATCH 1/2] [Build] Improve elements order in maven.yml and build with Maven 3.9.9 --- .github/workflows/build.yml | 10 +++++----- .github/workflows/codeql.yml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62f4a696e46..e90001cb27f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,8 +11,6 @@ on: jobs: build: - name: Build ${{ matrix.config.name }} - runs-on: ${{ matrix.config.runner-os }} strategy: fail-fast: false matrix: @@ -20,6 +18,8 @@ jobs: - { name: Linux, runner-os: ubuntu-latest, ws: gtk, os: linux, native-extension: so } - { name: Windows, runner-os: windows-2019, ws: win32, os: win32, native-extension: dll } - { name: MacOS, runner-os: macos-13, ws: cocoa, os: macosx, native-extension: so } + name: Build ${{ matrix.config.name }} + runs-on: ${{ matrix.config.runner-os }} steps: - uses: actions/checkout@v4 with: @@ -45,13 +45,13 @@ jobs: - name: Set up Maven uses: stCarolas/setup-maven@v5 with: - maven-version: 3.9.6 + maven-version: 3.9.9 - name: Install GTK requirements if: ${{ matrix.config.ws == 'gtk'}} run: | sudo apt-get update -q -y sudo apt-get install -q -y libgtk-3-dev - - name: Build with Maven + - name: Build uses: coactions/setup-xvfb@v1 env: EQUINOX_BINARIES_LOC: ${{ github.workspace }}/equinox.binaries @@ -101,7 +101,7 @@ jobs: - name: Set up Maven uses: stCarolas/setup-maven@v5 with: - maven-version: 3.9.6 + maven-version: 3.9.9 - name: Run OSGi TCKs run: >- mvn diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 786044e9b32..deedbc4ce7d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -33,6 +33,7 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 # required for jgit timestamp provider to work + path: equinox - name: checkout equinox.binaries uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: @@ -58,17 +59,16 @@ jobs: - name: Set up Maven uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5 with: - maven-version: 3.9.6 - - name: Build with Maven + maven-version: 3.9.9 + - name: Build uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a with: + working-directory: equinox run: >- mvn --batch-mode -Pbree-libs -Papi-check - -Dcompare-version-with-baselines.skip=false - -Dmaven.test.failure.ignore=true -Dequinox.binaries.loc=${{ github.workspace }}/equinox.binaries -DskipTests=true clean verify From 5a9f04c67d5b684a9bd60a162a03924077d91684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Wed, 25 Sep 2024 18:55:24 +0300 Subject: [PATCH 2/2] [Build] Remove coactions/setup-xvfb use It will stop working on Oct 15 and is claimed to not be needed anymore. Co-authored-by: Hannes Wellmann --- .github/workflows/build.yml | 9 +++++---- .github/workflows/codeql.yml | 6 ++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e90001cb27f..edc492898bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,9 @@ jobs: - { name: MacOS, runner-os: macos-13, ws: cocoa, os: macosx, native-extension: so } name: Build ${{ matrix.config.name }} runs-on: ${{ matrix.config.runner-os }} + defaults: + run: # Run on cmd on Windows because powershell interprets dots in arguments differently + shell: ${{ matrix.config.os == 'win32' && 'cmd' || 'bash' }} steps: - uses: actions/checkout@v4 with: @@ -52,12 +55,10 @@ jobs: sudo apt-get update -q -y sudo apt-get install -q -y libgtk-3-dev - name: Build - uses: coactions/setup-xvfb@v1 env: EQUINOX_BINARIES_LOC: ${{ github.workspace }}/equinox.binaries - with: - working-directory: equinox - run: >- + working-directory: equinox + run: >- mvn --batch-mode -Pbree-libs diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index deedbc4ce7d..5e11f572298 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -61,10 +61,8 @@ jobs: with: maven-version: 3.9.9 - name: Build - uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a - with: - working-directory: equinox - run: >- + working-directory: equinox + run: >- mvn --batch-mode -Pbree-libs