diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 503dde72a8c..ec15e65a1b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,9 +24,24 @@ jobs: steps: - uses: actions/checkout@v4 - name: Prerequisites - run: apt-get update && apt-get install --no-install-recommends -y ca-certificates curl gcc libc-dev # gcc is required as OS abstraction - - name: install Rust via Rustup - run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal; + run: | + apt-get update + apt-get install --no-install-recommends -y ca-certificates curl gcc libc-dev # gcc is required as OS abstraction + - name: Verify environment is sufficiently minimal for the test + run: | + set -x + for pattern in cmake g++ 'libcurl*-dev' libssl-dev make pkgconf pkg-config; do + if dpkg-query --list -- "$pattern"; then + exit 1 + fi + done + for cmd in cmake g++ make pkgconf pkg-config; do + if command -v -- "$cmd"; then + exit 1 + fi + done + - name: Install Rust via Rustup + run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal - uses: Swatinem/rust-cache@v2 - run: /github/home/.cargo/bin/cargo install --debug --locked --no-default-features --features max-pure --path .