build on tmpfs
@@ -5,6 +5,10 @@ systemctl stop docker.service
mount -t tmpfs tmpfs /var/lib/docker/
systemctl start docker.service
+TEMP=$(mktemp -d)
+mount -t tmpfs tmpfs ${TEMP}/
+cp -r . ${TEMP}/
+
echo -n 2.7 3.6 | xargs -i -d ' ' -P $(nproc) bash -euxc '
PYTHON={}
@@ -13,10 +17,10 @@ docker build \
-t devel:py${PYTHON//.} \
.pfnci/docker/devel/
docker run --rm \
- --volume $(pwd):/cupy/ --workdir /cupy/ \
+ --volume ${TEMP}/:/cupy/ --workdir /cupy/ \
devel:py${PYTHON//.} \
- pip${PYTHON} wheel -e . -b /tmp/
-gsutil -q cp cupy-*-cp${PYTHON//.}-*.whl \
+ pip${PYTHON} wheel -e .
+gsutil -q cp ${TEMP}/cupy-*-cp${PYTHON//.}-*.whl \
gs://tmp-pfn-public-ci/cupy/wheel/${CI_COMMIT_ID}/cupy-cuda92-py${PYTHON//.}.whl
'
