Skip to content

Commit

Permalink
Install Starboard clang toolchain (#4219)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxve authored Oct 7, 2024
1 parent 50263ac commit 6d98ce0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions chrobalt/docker/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ RUN apt-get update && apt-get install -y \

ADD files/sccache /usr/local/bin

# === Install pinned host Clang toolchain for all Linux-hosted builds
ARG CLANG_VER

ARG TC_ROOT=${HOME}/starboard-toolchains/
ARG TC_HOME=${TC_ROOT}/x86_64-linux-gnu-clang-chromium-${CLANG_VER}
ARG BASE_URL=https://commondatastorage.googleapis.com/chromium-browser-clang

RUN cd /tmp \
&& mkdir -p ${TC_HOME} \
&& curl --silent -O -J \
${BASE_URL}/Linux_x64/clang-${CLANG_VER}.tgz \
&& tar xf clang-${CLANG_VER}.tgz -C ${TC_HOME} \
&& echo ${CLANG_VER} >> ${TC_HOME}/cr_build_revision \
&& rm clang-${CLANG_VER}.tgz

ENV SCCACHE_GCS_BUCKET=githubactions-chrome-sccache
ENV SCCACHE_GCS_RW_MODE=READ_WRITE
ENV SCCACHE_GCS_KEY_PATH=/root/key.json
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
context: chrobalt/docker/linux
cache_from:
- ghcr.io/youtube/cobalt/linux:latest
args:
- CLANG_VER=${CLANG_VER:-365097-f7e52fbd-8}
image: ghcr.io/youtube/cobalt/linux:latest
platform: linux/amd64
environment:
Expand Down

0 comments on commit 6d98ce0

Please sign in to comment.