From 3f18a6333b33393e79cea446e53dfe7733290810 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Wed, 9 Apr 2025 22:05:30 -0700 Subject: [PATCH] Update CI to Ubuntu 22.04 Closes #828 --- .github/workflows/coverage.yml | 2 +- .github/workflows/deploy_docs.yml | 4 ++-- .github/workflows/release.yml | 10 +++++----- .github/workflows/test.yml | 18 +++++++++--------- CHANGELOG.md | 5 +++++ 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4fc19ad6c..79147359c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 83a992b4c..ef809a873 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 748af774a..2a532693f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78994722f..9b57d07e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index c1e330b37..5cb4e04a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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