From d91b2437687fad9e54cfbf55ea7e746b26bb7779 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 13 Jan 2025 22:25:55 +0000 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 611321427..a9ce2ea61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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