fix(ci): pin Linux runners to ubuntu-22.04 for glibc compatibility
ubuntu-latest resolves to 24.04 which links against GLIBC_2.39, producing native binaries that cannot run on Debian 12 (glibc 2.36). Ubuntu 22.04 ships glibc 2.35, ensuring compatibility with Debian 12 and other current stable distributions.
This commit is contained in:
@@ -19,7 +19,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
rust:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
RUSTFLAGS: -C target-cpu=x86-64-v3
|
||||
steps:
|
||||
@@ -40,19 +40,19 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
- os: ubuntu-22.04
|
||||
platform: linux
|
||||
arch: x64
|
||||
variant: modern
|
||||
variant_suffix: "-modern"
|
||||
rustflags: "-C target-cpu=x86-64-v3"
|
||||
- os: ubuntu-latest
|
||||
- os: ubuntu-22.04
|
||||
platform: linux
|
||||
arch: x64
|
||||
variant: baseline
|
||||
variant_suffix: "-baseline"
|
||||
rustflags: "-C target-cpu=x86-64-v2"
|
||||
- os: ubuntu-latest
|
||||
- os: ubuntu-22.04
|
||||
platform: linux
|
||||
arch: arm64
|
||||
variant: ""
|
||||
@@ -123,7 +123,7 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
RUSTFLAGS: -C target-cpu=x86-64-v3
|
||||
steps:
|
||||
@@ -157,7 +157,7 @@ jobs:
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [rust, native, test]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
|
||||
Reference in New Issue
Block a user