Skip to content

Commit

Permalink
Update software versions used in CI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ortham committed Jan 13, 2025
1 parent 78396b7 commit 395508b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,27 @@ on: [push, pull_request]
jobs:

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install metadata validator dependencies
run: |
wget https://github.com/unicode-org/icu/releases/download/release-71-1/icu4c-71_1-Ubuntu20.04-x64.tgz
tar -xf icu4c-71_1-Ubuntu20.04-x64.tgz
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ github.workspace }}/icu/usr/local/lib" >> "$GITHUB_ENV"
sudo apt-get update
sudo apt-get install -y --no-upgrade \
libicu74 \
libtbb12
- name: Install metadata validator
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
run: |
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
ln -s libloot.so.0.24.5 libloot.so.0
- name: Install parser
run: npm install -g js-yaml
Expand Down

0 comments on commit 395508b

Please sign in to comment.