Skip to content

Commit

Permalink
fix: should pass cache options when vcpkg install
Browse files Browse the repository at this point in the history
  • Loading branch information
cavivie committed Mar 29, 2024
1 parent daeae98 commit e89ebe5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions win-alrd-rsxe/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
FROM ghcr.io/automesh-network/dockerfiles:win-dev-rust

# vcpkg binary source from github cache actions
ARG VCPKG_BINARY_SOURCES=
ARG ACTIONS_CACHE_URL=
ARG ACTIONS_RUNTIME_TOKEN=
# export cache options as environments to vcpkg
RUN Write-Host $env:VCPKG_BINARY_SOURCES; \
Write-Host $env:ACTIONS_CACHE_URL; \
Write-Host $env:ACTIONS_RUNTIME_TOKEN
ENV VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES
ENV ACTIONS_CACHE_URL=$ACTIONS_CACHE_URL
ENV ACTIONS_RUNTIME_TOKEN=$ACTIONS_RUNTIME_TOKEN
RUN Write-Host $env:VCPKG_BINARY_SOURCES; \
Write-Host $env:ACTIONS_CACHE_URL; \
Write-Host $env:ACTIONS_RUNTIME_TOKEN
RUN vcpkg install openssl:x64-windows openssl:x64-windows-static openssl:x64-windows-static-md
RUN vcpkg install openssl:x86-windows openssl:x86-windows-static openssl:x86-windows-static-md
RUN vcpkg install openssl:arm64-windows openssl:arm64-windows-static openssl:arm64-windows-static-md
Expand Down

0 comments on commit e89ebe5

Please sign in to comment.