From 1cd9bcee12ec11ac9d32157758e5fd9ca7ef7dcf Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Tue, 23 Jul 2024 15:08:52 +0000 Subject: [PATCH] fix(ci): install cmake and libhwloc-dev --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/clippy.yml | 10 +++++++++- Dockerfile.server | 9 +++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d51b95..ac7c69c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,14 @@ jobs: override: true profile: minimal + - name: Install dependencies + run: | + apt-get update && apt-get install -y \ + cmake \ + libhwloc-dev \ + && apt-get clean all \ + && rm -rf /var/lib/apt/lists/* + - name: Build run: cargo build --package cassette-gateway --package cassette-operator --features 'full,experimental' --verbose diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 656db55..61f9a97 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -1,4 +1,4 @@ -name: pr_check +name: clippy on: push: @@ -48,5 +48,13 @@ jobs: override: true profile: minimal + - name: Install dependencies + run: | + apt-get update && apt-get install -y \ + cmake \ + libhwloc-dev \ + && apt-get clean all \ + && rm -rf /var/lib/apt/lists/* + - name: Check clippy run: cargo clippy --package cassette-gateway --package cassette-operator --features 'full,experimental' --verbose -- -D warnings diff --git a/Dockerfile.server b/Dockerfile.server index f90bd8b..d27ecdb 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -22,6 +22,7 @@ CMD [ "/bin/bash" ] # Install dependencies RUN apt-get update && apt-get install -y \ + hwloc \ libssl3 \ # Cleanup && apt-get clean all \ @@ -34,6 +35,14 @@ ADD ./LICENSE /usr/share/licenses/${PACKAGE}/LICENSE # Be ready for building FROM "${RUST_IMAGE}:${RUST_VERSION}-${_OS_VERSION}" AS builder +# Install dependencies +RUN apt-get update && apt-get install -y \ + cmake \ + libhwloc-dev \ + # Cleanup + && apt-get clean all \ + && rm -rf /var/lib/apt/lists/* + # Load source files ADD ./Cargo.toml /src/ ADD ./crates /src/crates