Skip to content

Commit

Permalink
ci: run on older ubuntu
Browse files Browse the repository at this point in the history
From guythatsits:

> Not sure if this is helpful but the reason it isn't installing in any
of the debian based is the libc6 dependency(requires 2.39, these are
both on 2.35). Looks like popos alpha apparently includes the updated
library. Had the same issue on just a barebone debian system as well.

By default, GitHub Actions uses the latest Ubuntu runner (e.g.,
ubuntu-latest), which has glibc 2.39+. Instead, we can explicitly use
ubuntu-20.04, which has glibc 2.31.

Reported-by: guythatsits
Fixes: #706
Changelog-Fixed: Fixed issue running binary on older debian distros
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Feb 4, 2025
1 parent 9dd33d5 commit 35dbe81
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
lint:
name: Rustfmt + Clippy
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -26,7 +26,7 @@ jobs:
name: Test (Linux)
uses: ./.github/workflows/build-and-test.yml
with:
os: ubuntu-latest
os: ubuntu-20.04
additional-setup: |
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev
Expand All @@ -44,7 +44,7 @@ jobs:

packaging:
name: rpm/deb
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-test
if: github.ref_name == 'master' || github.ref_name == 'ci'

Expand All @@ -71,6 +71,9 @@ jobs:
- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Cargo Fetch
run: cargo fetch

- name: Build Cross (${{ matrix.arch }})
if: matrix.arch != runner.arch
run: cargo build --release --target=${{ matrix.arch }}-unknown-linux-gnu
Expand Down

0 comments on commit 35dbe81

Please sign in to comment.