Skip to content

Commit 1b6b4a8

Browse files
committed
Update CI
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 <[email protected]>
1 parent 72bcb51 commit 1b6b4a8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
8-
7+
runs-on: ubuntu-24.04
98
steps:
109
- uses: actions/checkout@v4
1110
- name: Set up JDK 1.8
@@ -21,14 +20,18 @@ jobs:
2120
${{ runner.os }}-m2-
2221
- uses: erlef/setup-beam@v1
2322
with:
24-
otp-version: '23'
25-
- name: erl
26-
run: erl -version
23+
otp-version: '25'
24+
# Since erlef/setup-beam installs OTP in a unique directory we need
25+
# to create a symlink so that erlide can find the installation.
26+
# The environment variable INSTALL_DIR_FOR_OTP is set by erlef/setup-beam
27+
# and erlide will only search for a runtime in commonly used directories.
28+
- name: Create OTP symlink
29+
run: sudo -E ln -s $INSTALL_DIR_FOR_OTP /usr/local/lib/erlang
2730
- uses: ruby/setup-ruby@v1
2831
with:
2932
ruby-version: '2.7'
3033
- name: Build with Maven
31-
run: xvfb-run ./mvnw -B -U clean verify -P help
34+
run: xvfb-run ./mvnw -B -U clean verify -P help --fail-at-end
3235
- uses: actions/upload-artifact@v4
3336
with:
3437
name: P2 site

0 commit comments

Comments
 (0)