Skip to content

Commit

Permalink
CI: Build binaries on older Linux for broader compatiblity
Browse files Browse the repository at this point in the history
Older Linux uses older glibc. Software linked against older glibc is
generally *forward-compatible* for running on newer systems. But
software linked against *newer* glibc is often not
*backward-compatible* for running on older systems.

So, we should pretty much build the binaries on whatever popular,
still-supported Linux distro ships with oldest glibc.

This is likely to be Debian or a RHEL-compatible distro, but we can
try starting with the oldest one GitHub Actions supports natively,
which I used here (Ubuntu 20.04 instead of Ubuntu 22.04/latest).

Debian or a RHEL-compatible distro such as Alma Linux or Rocky Linux
could be used via Docker, though, relatively easily.
  • Loading branch information
DeeDeeG committed Oct 3, 2023
1 parent 5f3e40a commit 6dadc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-20.04, windows-latest, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit 6dadc67

Please sign in to comment.