mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-20 22:32:07 +00:00
misc(gha): expose action cache url and runtime as secrets
This commit is contained in:
parent
73b7cf83f6
commit
dc2dceb795
1
.github/workflows/build.yaml
vendored
1
.github/workflows/build.yaml
vendored
@ -191,6 +191,7 @@ jobs:
|
||||
PLATFORM=${{ env.PLATFORM }}
|
||||
build_type=${{ env.BUILD_TYPE }}
|
||||
sccache_gha_enabled=on
|
||||
secrets:
|
||||
actions_cache_url=${{ env.ACTIONS_CACHE_URL }}
|
||||
actions_runtime_token=${{ env.ACTIONS_RUNTIME_TOKEN }}
|
||||
|
||||
|
@ -64,12 +64,12 @@ WORKDIR /usr/src/text-generation-inference
|
||||
ARG cuda_arch_list
|
||||
ARG build_type
|
||||
ARG sccache_gha_enabled
|
||||
ARG actions_cache_url
|
||||
ARG actions_runtime_token
|
||||
|
||||
# Install Rust
|
||||
ENV PATH="/root/.cargo/bin:$PATH"
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y && \
|
||||
RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
|
||||
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y && \
|
||||
chmod -R a+w /root/.rustup && \
|
||||
chmod -R a+w /root/.cargo && \
|
||||
cargo install sccache --locked
|
||||
|
Loading…
Reference in New Issue
Block a user