From 15c32f1f7af74e09146d5b6e2eb6d7f503ca7e82 Mon Sep 17 00:00:00 2001 From: Thomas Baisley <132991176+NxtTAB@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:34:18 +0200 Subject: [PATCH] Fix the problem with the failed compilation of openssl-sys in slim container The most important change here is the new step Install OpenSSL, which has been added before the tests and the build. This step installs the necessary development libraries for OpenSSL --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 57e844a..1d918bf 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,11 +14,16 @@ jobs: runs-on: ubuntu-latest container: - image: rust:1.70-slim-bullseye + image: rust:slim-bullseye steps: - uses: actions/checkout@v3 + - name: Install OpenSSL + run: | + apt-get update + apt-get install -y pkg-config libssl-dev + - name: Run tests run: cargo test --verbose