Skip to content

Commit

Permalink
fix(ci): install cmake and libhwloc-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 23, 2024
1 parent ba47d9d commit 1cd9bce
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pr_check
name: clippy

on:
push:
Expand Down Expand Up @@ -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
9 changes: 9 additions & 0 deletions Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ CMD [ "/bin/bash" ]

# Install dependencies
RUN apt-get update && apt-get install -y \
hwloc \
libssl3 \
# Cleanup
&& apt-get clean all \
Expand 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
Expand Down

0 comments on commit 1cd9bce

Please # to comment.