-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2279 from AntelopeIO/assert_ci
add a CI "platform" with `assert()`s enabled (`NDEBUG` not defined)
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# syntax=docker/dockerfile:1 | ||
#the exact version of Ubuntu doesn't matter for the purpose of asserton builds. Feel free to upgrade in future | ||
FROM ubuntu:jammy | ||
ENV TZ="America/New_York" | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y build-essential \ | ||
cmake \ | ||
git \ | ||
jq \ | ||
libcurl4-openssl-dev \ | ||
libgmp-dev \ | ||
llvm-11-dev \ | ||
ninja-build \ | ||
python3-numpy \ | ||
file \ | ||
zlib1g-dev \ | ||
zstd | ||
|
||
ENV LEAP_PLATFORM_HAS_EXTRAS_CMAKE=1 | ||
COPY <<-EOF /extras.cmake | ||
# reset the build type to empty to disable any cmake default flags | ||
set(CMAKE_BUILD_TYPE "" CACHE STRING "" FORCE) | ||
|
||
set(CMAKE_C_FLAGS "-O3" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS "-O3" CACHE STRING "") | ||
|
||
set(LEAP_ENABLE_RELEASE_BUILD_TEST "Off" CACHE BOOL "") | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters