Commit 11a1961b authored by Emmanuele Bassi's avatar Emmanuele Bassi

ci: Update the scripts

Build inside a temporary directory, and ensure that the local script imports the repo inside the Docker container.
parent 7caf0595
......@@ -7,5 +7,5 @@ TAG=""
sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
--file "Dockerfile" .
sudo docker run --rm --security-opt label=disable \
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
--volume "$(pwd)/../..:/home/user/app" --workdir "/home/user/app" \
--tty --interactive "${TAG}" bash
......@@ -2,6 +2,7 @@
set -e
builddir=$(mktemp -d build_XXXXXX)
mkdir -p _ccache
......@@ -10,12 +11,18 @@ export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
ccache --zero-stats
ccache --show-stats
# Disable ccache while running Meson, to avoid cached compiler tests
export CCACHE_DISABLE=true
meson \
_build $srcdir
meson ${builddir} ${srcdir} || exit $?
cd _build
cd ${builddir}
ninja || exit $?
cd ..
rm -rf ${builddir}
ccache --show-stats
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment