Skip to content

Commit c2ec98d

Browse files
committed
build: catch2 is installed with using conan instead of FetchContent
1 parent 85aa8c6 commit c2ec98d

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

ci/docker/linux/jenkins/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,7 @@ ENV CONAN_USER_HOME=${CONAN_USER_HOME}
143143
ARG CONAN_HOME
144144
ENV CONAN_HOME=${CONAN_HOME}
145145
COPY --from=conan_builder --chmod=777 ${CONAN_HOME} ${CONAN_HOME}
146-
ENV TZ=UTC
146+
ENV TZ=UTC
147+
148+
# To help mark the image as a CI image so it can be cleaned up more easily
149+
LABEL purpose=ci

ci/docker/linux/tox/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ RUN mkdir -p ${PIP_DOWNLOAD_CACHE} && \
7979
mkdir -p ${UV_CACHE_DIR} && \
8080
chmod -R 777 ${UV_CACHE_DIR}
8181

82+
# To help mark the image as a CI image so it can be cleaned up more easily
83+
LABEL purpose=ci

scripts/resources/package_for_linux/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,8 @@ RUN chmod -R 777 ${CONAN_HOME} && \
9595
chmod -R 777 ${PIP_DOWNLOAD_CACHE} && \
9696
mkdir -p ${UV_CACHE_DIR} && \
9797
chmod -R 777 ${UV_CACHE_DIR}
98-
LABEL type="jenkins"
98+
99+
LABEL type="jenkins"
100+
101+
# To help mark the image as a CI image so it can be cleaned up more easily
102+
LABEL purpose=ci

scripts/resources/windows/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ ARG PIP_EXTRA_INDEX_URL
7070
ARG UV_INDEX_URL
7171
ARG UV_EXTRA_INDEX_URL
7272
ENV UV_PROJECT=c:/temp/uv
73+
ENV UV_PROJECT_ENVIRONMENT=c:\temp\uv.venv
7374
COPY conanfile.py c:/temp/conanfile.py
7475
COPY pyproject.toml uv.lock conan.lock ${UV_PROJECT}/
7576
COPY scripts/resources/windows/conan/profile.ini ${CONAN_HOME}/profiles/default
@@ -82,12 +83,12 @@ RUN uv run --only-group conan --with ninja conan profile detect --exist-ok ; `
8283
Copy-Item -Path "${Env:CONAN_HOME}\remotes.json" -Destination "c:\remotes.json" ; `
8384
uv run --only-group conan --with ninja conan remote update conan-center --url ${env:CONAN_CENTER_PROXY_V2_URL}; `
8485
}; `
85-
uv run --only-group conan --with ninja conan install c:/temp/ --build missing -pr:b=default --conf=tools.cmake.cmaketoolchain:generator=Ninja -c tools.graph:skip_test=True ; `
86+
uv run --only-group conan --with ninja conan install c:/temp/ --build missing -pr:b=default --conf=tools.cmake.cmaketoolchain:generator=Ninja -c tools.graph:skip_test=True -c tools.build:skip_test; `
8687
if ($LASTEXITCODE -ne 0) { `
8788
throw \"Command 'conan install' failed with exit code: $LASTEXITCODE\"`
8889
} ;`
8990
uv run --only-group conan --with ninja conan cache clean "*" -b --source --build --temp ; `
90-
Remove-Item -Path \"${Env:UV_PROJECT}\\.venv\" -Recurse -Force ; `
91+
Remove-Item -Path \"${Env:UV_PROJECT_ENVIRONMENT}\" -Recurse -Force ; `
9192
uv cache clean --no-progress ; `
9293
if (${env:CONAN_CENTER_PROXY_V2_URL} -ne $(Get-Content -Raw -Path ${Env:CONAN_HOME}\remotes.json)) { `
9394
Move-Item -Path "c:\remotes.json" -Destination "${Env:CONAN_HOME}\remotes.json" -Force ;`
@@ -114,3 +115,5 @@ ENV CONAN_USER_HOME=${CONAN_USER_HOME}`
114115
UV_CACHE_DIR=${UV_CACHE_DIR}`
115116
PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE}
116117

118+
# To help mark the image as a CI image so it can be cleaned up more easily
119+
LABEL purpose=ci

0 commit comments

Comments
 (0)