mirror of https://github.com/WebAssembly/wasi-sdk
Enable ccache for CI builds of LLVM (#277)
parent
646cac5bdb
commit
388a7cacbf
@ -1,3 +1,4 @@
|
||||
# Our docker builds do not require the submodule sources so exclude them as
|
||||
# they can be very big.
|
||||
/src
|
||||
.git
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
echo "Building the docker"
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
echo "Building the docker image"
|
||||
docker build -t wasi-sdk-builder:latest .
|
||||
echo "Building the package in docker"
|
||||
docker run --mount type=bind,src=$PWD,target=/workspace -e NINJA_FLAGS=-v --workdir /workspace wasi-sdk-builder:latest make package
|
||||
echo "Building the package in docker image"
|
||||
mkdir -p ~/.ccache
|
||||
docker run --rm -v "$PWD":/workspace -v ~/.ccache:/root/.ccache -e NINJA_FLAGS=-v --workdir /workspace --tmpfs /tmp:exec wasi-sdk-builder:latest make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
|
||||
|
Loading…
Reference in new issue