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 been updated to the latest LTS version.

The version of Python used has been updated to the latest minor version.
  • Loading branch information
Ortham committed Jan 13, 2025
1 parent 4491cdf commit 6b5871c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,27 @@ on: [push, pull_request]
jobs:

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

steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
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
4 changes: 2 additions & 2 deletions .github/workflows/import-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
import:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

# Only run if the pull request was opened by Weblate's GitHub bot user.
if: ${{ github.event.sender.id == 1607653 && github.event.pull_request.maintainer_can_modify == true }}
Expand All @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.13'

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
check-for-changes:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

if: >
github.event.workflow_run.event == 'pull_request' &&
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
fi
apply-patch:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

needs: [check-for-changes]

Expand Down

0 comments on commit 6b5871c

Please sign in to comment.