Skip to content

Commit ccd6525

Browse files
authoredNov 10, 2024··
Merge pull request #1665 from EliahKagan/run-ci/pure-rust-build-next
Verify `pure-rust-build` has limited tools/headers, use `stable-slim`
2 parents 1df68e4 + 2a791c8 commit ccd6525

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed
 

‎.github/workflows/ci.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,28 @@ on:
2020
jobs:
2121
pure-rust-build:
2222
runs-on: ubuntu-latest
23-
container: debian:bookworm
23+
container: debian:stable-slim
2424
steps:
2525
- uses: actions/checkout@v4
2626
- name: Prerequisites
27-
run: apt-get update && apt-get install --no-install-recommends -y ca-certificates curl gcc libc-dev # gcc is required as OS abstraction
28-
- name: install Rust via Rustup
29-
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal;
27+
run: |
28+
apt-get update
29+
apt-get install --no-install-recommends -y ca-certificates curl gcc libc-dev # gcc is required as OS abstraction
30+
- name: Verify environment is sufficiently minimal for the test
31+
run: |
32+
set -x
33+
for pattern in cmake g++ libssl-dev make pkgconf pkg-config; do
34+
if dpkg-query --status -- "$pattern"; then
35+
exit 1
36+
fi
37+
done
38+
for cmd in cmake g++ make pkgconf pkg-config; do
39+
if command -v -- "$cmd"; then
40+
exit 1
41+
fi
42+
done
43+
- name: Install Rust via Rustup
44+
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
3045
- uses: Swatinem/rust-cache@v2
3146
- run: /github/home/.cargo/bin/cargo install --debug --locked --no-default-features --features max-pure --path .
3247

0 commit comments

Comments
 (0)
Please sign in to comment.