Skip to content

Commit 7299f15

Browse files
committed
widen glibc compatibility by running on older ubuntu version
Code built on glibc version X only works on X>=1, not on older version. For example, if one tries to use the latest release with a project using `ubuntu-22.04` GitHub runners one will get an error like: ``` ./protoc-gen-grpc-python-linux-x86_64-v1.73.1: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./protoc-gen-grpc-python-linux-x86_64-v1.73.1) ``` Compiling on an older but still supported runner will broaden the range of distributions that can use this binary.
1 parent acd7002 commit 7299f15

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020

2121
jobs:
2222
prepare:
23-
runs-on: ubuntu-24.04
23+
runs-on: ubuntu-22.04
2424
outputs:
2525
matrix: ${{ steps.set-matrix.outputs.matrix }}
2626
should_release: ${{ steps.check-release.outputs.should_release }}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
shellcheck:
88
name: ShellCheck
9-
runs-on: ubuntu-24.04
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- name: Checkout repository
1212
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -17,7 +17,7 @@ jobs:
1717

1818
ruff:
1919
name: Ruff
20-
runs-on: ubuntu-24.04
20+
runs-on: ubuntu-22.04
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
contents: write
1717
pull-requests: write
18-
runs-on: ubuntu-24.04
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6
2121
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-24.04
13+
runs-on: ubuntu-22.04
1414
permissions:
1515
contents: write
1616

grpc-versions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ versions:
4040
active: false
4141
platforms:
4242
- name: linux-x86_64
43-
os: ubuntu-24.04
43+
os: ubuntu-22.04
4444
bazel_config: --config=linux
4545
artifact_name: protoc-gen-grpc-python-linux-x86_64
4646
- name: linux-aarch64
47-
os: ubuntu-24.04-arm
47+
os: ubuntu-22.04-arm
4848
bazel_config: --config=linux
4949
artifact_name: protoc-gen-grpc-python-linux-aarch64
5050
- name: macos-universal

0 commit comments

Comments
 (0)