Update CI to Ubuntu 22.04

Closes #828
pull/832/head
Wilfred Hughes 2025-04-09 22:05:30 +07:00
parent 2efe4003b3
commit 3f18a6333b
5 changed files with 22 additions and 17 deletions

@ -4,7 +4,7 @@ on: [pull_request, push]
jobs:
coverage:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

@ -7,7 +7,7 @@ on:
jobs:
pre_deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
@ -20,7 +20,7 @@ jobs:
deploy:
needs: pre_deploy
if: needs.pre_deploy.outputs.should_skip != 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

@ -7,7 +7,7 @@ on:
jobs:
create-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
@ -26,7 +26,7 @@ jobs:
include:
# Targets that match the OS of the runner.
- target: x86_64-unknown-linux-gnu
os: ubuntu-20.04
os: ubuntu-22.04
- target: x86_64-apple-darwin
os: macos-13
- target: x86_64-pc-windows-msvc
@ -35,9 +35,9 @@ jobs:
# Targets using cross-compilation (upload-rust-binary-action
# detects that they need cross).
- target: x86_64-unknown-linux-musl
os: ubuntu-20.04
os: ubuntu-22.04
- target: aarch64-unknown-linux-gnu
os: ubuntu-20.04
os: ubuntu-22.04
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
@ -57,7 +57,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
push_crates_io:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: katyo/publish-crates@v2

@ -11,17 +11,17 @@ jobs:
matrix:
job:
# Operating systems available: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
- { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04 }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-22.04 }
# mac-latest (currently mac-14) is an ARM device, so use macos-13 to get Intel.
- { target: x86_64-apple-darwin, os: macos-13 }
- { target: x86_64-pc-windows-msvc, os: windows-latest }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, use-cross: true }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-22.04, use-cross: true }
# mac-14 is an M1 ARM device.
- { target: aarch64-apple-darwin, os: macos-14 }
- { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, use-cross: true }
- { target: x86_64-unknown-linux-musl, os: ubuntu-22.04, use-cross: true }
env:
BUILD_CMD: cargo
SUBCOMMAND: test
@ -52,7 +52,7 @@ jobs:
test_mime_db:
name: Test with MIME database
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.74.1
@ -61,7 +61,7 @@ jobs:
test_linux_latest_stable:
name: Test Linux (latest stable Rust)
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
@ -69,7 +69,7 @@ jobs:
regression_test:
name: Output Regression Test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.74.1
@ -80,7 +80,7 @@ jobs:
package:
name: Check Linux Packaging
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.74.1
@ -88,7 +88,7 @@ jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.74.1
@ -96,7 +96,7 @@ jobs:
actionlint:
name: Actionlint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: raven-actions/actionlint@v2

@ -5,6 +5,11 @@
Updated to the latest tree-sitter parser for Erlang, F#, Pascal and
Swift.
### Build
CI on GitHub now uses Ubuntu 22.04 for Linux builds (previously Ubuntu
20.04), so prebuilt binaries will require a newer glibc version to run.
## 0.63 (released 11th February 2025)
### Diffing