WIP simplify pre-building the conan packages.

This commit is contained in:
Bart Beumer 2025-12-09 23:35:22 +01:00
parent ab58369caf
commit c995d75c36
2 changed files with 6 additions and 7 deletions

View File

@ -7,5 +7,5 @@ parser.add_argument('--build_type')
parser.add_argument('--cppstd')
args = parser.parse_args()
print ('Executing post-create steps. Build type ', args.build_type. ' C++ standard ' + arg.cppstd)
os.system('conan install /workspaces/network-experiment -of /workspaces/build -s compiler.cppstd= ' + arg.cppstd + ' -s build_type=' + args.build_type)
print ('Executing post-create steps. Build type ', args.build_type, ' C++ standard ', args.cppstd)
os.system('conan install /workspaces/network-experiment -of /workspaces/network-experiment/build -s compiler.cppstd=' + args.cppstd + ' -s build_type=' + args.build_type)

View File

@ -37,11 +37,10 @@ RUN conan profile detect
# avoid expensive rebuilding everytime we need a fresh dev container..
RUN mkdir -p /workspaces/tmp
WORKDIR /workspaces/tmp
RUN conan install -s build_type=$BUILD_TYPE -s compiler.cppstd=$COMPILER_CPPSTD -b=* --requires=boost/1.89.0 -o without_cobalt=True
RUN conan install -s build_type=$BUILD_TYPE -s compiler.cppstd=$COMPILER_CPPSTD -b=* --requires=libmagic/5.45
RUN conan install -s build_type=$BUILD_TYPE -s compiler.cppstd=$COMPILER_CPPSTD -b=* --requires=freetype/2.14.1
RUN conan install -s build_type=$BUILD_TYPE -s compiler.cppstd=$COMPILER_CPPSTD -b=missing --requires=gtest/1.14.0
RUN conan install -s build_type=$BUILD_TYPE -s compiler.cppstd=$COMPILER_CPPSTD -b=missing --requires=libjpeg/9f
RUN touch CMakeLists.txt
ADD conanfile.py .
RUN conan install -s build_type=$BUILD_TYPE -s compiler.cppstd=$COMPILER_CPPSTD -b=*
WORKDIR /workspaces
RUN rm -rf tmp