fix: disable vcpkg based on dpkg arch

This commit is contained in:
Amin Yahyaabadi 2025-02-23 23:06:47 -08:00
parent 1a07db80e7
commit 9ba7b69ac1
2 changed files with 8 additions and 1 deletions

View File

@ -42,11 +42,13 @@ words:
- dearmor
- deps
- devel
- dpkg
- dprint
- DVCPKG
- dyld
- eabi
- envosman
- esac
- esmodule
- execa
- ftxui

View File

@ -25,13 +25,18 @@ RUN node /usr/lib/setup-cpp/setup-cpp.js \
--cmake true \
--ninja true \
--task true \
--vcpkg $([ "$TARGETPLATFORM" = "linux/amd64" ] && echo "true" || echo "false") \
--python true \
--make true \
--cppcheck true \
--gcovr true \
--doxygen true \
--ccache true && \
# install vcpkg if the architecture is amd64
dpkgArch="$(dpkg --print-architecture)" && \
case "${dpkgArch##*-}" in \
amd64) node /usr/lib/setup-cpp/setup-cpp.js --vcpkg true ;; \
*) echo >&2 "unsupported vcpkg architecture: ${dpkgArch}" ;; \
esac && \
# cleanup
nala autoremove -y && \
nala autopurge -y && \