Skip to content

Commit

Permalink
Fix build-capable CI job
Browse files Browse the repository at this point in the history
It appears that recent Ubuntu upstream changes broke our build-capable
job, because the system libelf.a now seems to have built in support for
zstd, necessitating the linking of the corresponding library. Do just
that.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o authored and danielocfb committed Dec 19, 2024
1 parent 271afc8 commit acdd9f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ jobs:
run: sudo apt-get install -y libelf-dev
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: RUSTFLAGS="$RUSTFLAGS -L /usr/lib/x86_64-linux-gnu" cargo build --locked --package capable --features=static
# `-lzstd` is necessary because Ubuntu's system libelf.a is built
# with zstd support.
- run: RUSTFLAGS="$RUSTFLAGS -L /usr/lib/x86_64-linux-gnu -lzstd" cargo build --locked --package capable --features=static

build-aarch64:
name: Build for aarch64
Expand Down

0 comments on commit acdd9f0

Please sign in to comment.