Skip to content

Commit 2fff290

Browse files
committed
Merge remote-tracking branch 'ibex/main' into main
2 parents f683a5e + 8f1a402 commit 2fff290

5 files changed

Lines changed: 68 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# This is necessary because some of the Github-hosted macOS-based runner
3434
# did trigger the API rate limit from time to time.
3535
collect-github-api-artifacts:
36-
runs-on: [ubuntu-22.04]
36+
runs-on: [ubuntu-24.04]
3737
steps:
3838
- name: Find emoflon-headless updatesite
3939
run: |
@@ -77,10 +77,12 @@ jobs:
7777

7878
# Create splash image
7979
create-splash-image:
80-
runs-on: [ubuntu-22.04]
80+
runs-on: [ubuntu-24.04]
8181
steps:
8282
- name: Check out repository code
8383
uses: actions/checkout@v6
84+
- name: Install dependencies
85+
run: sudo apt-get install -yq imagemagick
8486
- name: Start message
8587
run: echo "Creating splash image for version $VERSION."
8688
- name: Run splash creator script
@@ -94,7 +96,7 @@ jobs:
9496
# Build Eclipse GIPS Linux user
9597
build-linux-user:
9698
needs: [create-splash-image, collect-github-api-artifacts]
97-
runs-on: [ubuntu-22.04]
99+
runs-on: [ubuntu-24.04]
98100
steps:
99101
- name: Start message
100102
run: echo "Started CI build (Eclipse GIPS Linux user)."
@@ -128,7 +130,7 @@ jobs:
128130
# Build Eclipse GIPS Linux user CI
129131
build-linux-user-ci:
130132
needs: [collect-github-api-artifacts]
131-
runs-on: [ubuntu-22.04]
133+
runs-on: [ubuntu-24.04]
132134
steps:
133135
- name: Start message
134136
run: echo "Started CI build (Eclipse GIPS Linux user CI)."
@@ -163,11 +165,11 @@ jobs:
163165
steps:
164166
- name: Start message
165167
run: echo "Started CI build (Eclipse GIPS macOS user)."
166-
- name: Install dependencies
167-
run: |
168-
brew install p7zip coreutils grep wget curl
169168
- name: Check out repository code
170169
uses: actions/checkout@v6
170+
- name: Install dependencies
171+
run: |
172+
bash scripts/install-macos-dependencies.sh
171173
- name: Download splash image
172174
uses: actions/download-artifact@v8
173175
with:
@@ -201,11 +203,11 @@ jobs:
201203
steps:
202204
- name: Start message
203205
run: echo "Started CI build (Eclipse GIPS macOS user)."
204-
- name: Install dependencies
205-
run: |
206-
brew install p7zip coreutils grep wget curl
207206
- name: Check out repository code
208207
uses: actions/checkout@v6
208+
- name: Install dependencies
209+
run: |
210+
bash scripts/install-macos-dependencies.sh
209211
- name: Download splash image
210212
uses: actions/download-artifact@v8
211213
with:
@@ -239,18 +241,18 @@ jobs:
239241
steps:
240242
- name: Start message
241243
run: echo "Started CI build (Eclipse GIPS Windows user)."
242-
- name: Install dependencies
243-
run: |
244-
choco install wget curl unzip zip --no-progress
245244
- name: Install correct Java version
246-
uses: actions/setup-java@v4
245+
uses: actions/setup-java@v5
247246
with:
248247
distribution: 'adopt'
249248
java-version: '16'
250249
- name: Fix Git line endings
251250
run: git config --global core.autocrlf input
252251
- name: Check out repository code
253252
uses: actions/checkout@v6
253+
- name: Install dependencies
254+
run: |
255+
bash scripts/install-windows-dependencies.sh
254256
- name: Download splash image
255257
uses: actions/download-artifact@v8
256258
with:
@@ -279,7 +281,7 @@ jobs:
279281
# Create a release if running on tag
280282
create-release:
281283
needs: [build-linux-user, build-linux-user-ci, build-macos-user, build-macos-arm-user, build-windows-user]
282-
runs-on: [ubuntu-22.04]
284+
runs-on: [ubuntu-24.04]
283285
# Only run on pushed tags (and explicitely ignore scheduled runs)
284286
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.event_name != 'schedule'
285287
steps:

build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@ remove_notification_urls () {
213213
# Script
214214
#
215215

216+
# Patches the slf4j JAR file to fix an installation bug of the checkstyle plug-in.
217+
patch_slf4j_jar () {
218+
log "Patching slf4j JAR."
219+
SLF4J_JAR_FILE="org.slf4j.api_1.7.30.v20221112-0806.jar"
220+
cp ./patches/$SLF4J_JAR_FILE $ECLIPSE_BASE_PATH/plugins/$SLF4J_JAR_FILE
221+
}
222+
216223
# Check if script needs to download the initial Eclipse archive.
217224
if [[ ! -f "./$ARCHIVE_FILE" ]]; then
218225
log "Downloading Eclipse $VERSION archive from $MIRROR."
@@ -256,6 +263,9 @@ fi
256263
# Install global Eclipse settings from config file
257264
install_global_eclipse_settings
258265

266+
# Install slf4j via patch
267+
patch_slf4j_jar
268+
259269
log "Install Eclipse plug-ins."
260270
for p in ${ORDER[@]}; do
261271
# Check if eMoflon packages must be skipped (for dev builds).
54 KB
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
DEPENDENCIES=("p7zip" "coreutils" "grep" "wget" "curl")
6+
7+
# Displays the given input including "=> " on the console.
8+
log () {
9+
echo "=> $1"
10+
}
11+
12+
# Installs the given package via brew if it is not already installed.
13+
# Reference: https://apple.stackexchange.com/a/425118
14+
brew_install() {
15+
log "Installing $1."
16+
if brew list $1 &>/dev/null; then
17+
log "${1} is already installed."
18+
else
19+
brew install $1 && log "$1 is installed."
20+
fi
21+
}
22+
23+
# Actually install all dependencies
24+
for p in ${DEPENDENCIES[@]}; do
25+
brew_install $p
26+
done
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
DEPENDENCIES=("wget" "curl" "unzip" "zip")
6+
7+
# Displays the given input including "=> " on the console.
8+
log () {
9+
echo "=> $1"
10+
}
11+
12+
# Actually install all dependencies
13+
for p in ${DEPENDENCIES[@]}; do
14+
choco install $p --no-progress
15+
done

0 commit comments

Comments
 (0)