Skip to content

Commit 3afe012

Browse files
committed
Update software versions used in CI
The ubuntu-20.04 runner is due to be deprecated on 2025-02-01 and unsupported by 2025-04-01. The previous version of the metadata validator wouldn't run on Ubuntu 24.04 due to a dependency version mismatch, so has been updated. The actions/checkout and actions/setup-node actions have also been updated to their latest major versions. The version of Node.js used has also been updated to the latest LTS version.
1 parent 97a9852 commit 3afe012

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/ci.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ on: [push, pull_request]
66
jobs:
77

88
build:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: Set up Node
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
1618

1719
- name: Install metadata validator dependencies
1820
run: |
19-
wget https://github.com/unicode-org/icu/releases/download/release-71-1/icu4c-71_1-Ubuntu20.04-x64.tgz
20-
tar -xf icu4c-71_1-Ubuntu20.04-x64.tgz
21-
22-
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ github.workspace }}/icu/usr/local/lib" >> "$GITHUB_ENV"
21+
sudo apt-get update
22+
sudo apt-get install -y --no-upgrade \
23+
libicu74 \
24+
libtbb12
2325
2426
- name: Install metadata validator
25-
run: wget https://github.com/loot/metadata-validator/releases/download/0.21.0/metadata-validator-0.21.0-0-gd56177b_0.21.0-Linux.tar.xz -O - | tar -xJ --strip-components=1
27+
run: |
28+
wget https://github.com/loot/metadata-validator/releases/download/0.24.0/metadata-validator-0.24.0-0-g36fea7e_0.24.0-Linux.tar.xz -O - | tar -xJ --strip-components=1
29+
ln -s libloot.so.0.24.5 libloot.so.0
2630
2731
- name: Install parser
2832
run: npm install -g js-yaml

0 commit comments

Comments
 (0)