From 42c383578a58c85fd5d872b5bbd7dd6fd8f84a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Tue, 27 May 2025 13:05:59 +0200 Subject: [PATCH] Update CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use runner ubuntu-24.04 and OTP 25. The previously used runner ubuntu-20.04 already had Erlang/OTP installed, and this installation was found by the erlide tests. Since 24.04 is not providing Erlang/OTP the tests started to fail. A symlink fixed this issue. Signed-off-by: Björn Svensson --- .github/workflows/build.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ea55c2b18e..37211e6db1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,8 +4,7 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 - + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Set up JDK 1.8 @@ -21,14 +20,18 @@ jobs: ${{ runner.os }}-m2- - uses: erlef/setup-beam@v1 with: - otp-version: '23' - - name: erl - run: erl -version + otp-version: '25' + # Since erlef/setup-beam installs OTP in a unique directory we need + # to create a symlink so that erlide can find the installation. + # The environment variable INSTALL_DIR_FOR_OTP is set by erlef/setup-beam + # and erlide will only search for a runtime in commonly used directories. + - name: Create OTP symlink + run: sudo -E ln -s $INSTALL_DIR_FOR_OTP /usr/local/lib/erlang - uses: ruby/setup-ruby@v1 with: ruby-version: '2.7' - name: Build with Maven - run: xvfb-run ./mvnw -B -U clean verify -P help + run: xvfb-run ./mvnw -B -U clean verify -P help --fail-at-end - uses: actions/upload-artifact@v4 with: name: P2 site