Skip to content

Commit

Permalink
install only in docker container to avoid running out of space in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninja3047 committed Jul 27, 2023
1 parent fc0d671 commit 34be68d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,11 @@ ENV CXX=clang++

WORKDIR /rellic
COPY ./ ./
# The reason we don't use --install
# is so that container has the same exact code as the packages
RUN ./scripts/build.sh \
--llvm-version ${LLVM_VERSION} \
--prefix /opt/trailofbits \
--extra-cmake-args "-DCMAKE_BUILD_TYPE=Release"

RUN cd rellic-build && \
CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --verbose --target test && \
cmake --build . --target install
--extra-cmake-args "-DCMAKE_BUILD_TYPE=Release" \
--install

# Small installation image
FROM base as install
Expand Down

0 comments on commit 34be68d

Please sign in to comment.