mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
use per build-job CARGO_TARGET_DIR
This commit is contained in:
@@ -4,8 +4,6 @@ export BRANCH=${CIRCLE_BRANCH:?branch to build}
|
|||||||
export REPONAME=${CIRCLE_PROJECT_REPONAME:?repository name}
|
export REPONAME=${CIRCLE_PROJECT_REPONAME:?repository name}
|
||||||
export SSHTARGET=${SSHTARGET-ci@b1.delta.chat}
|
export SSHTARGET=${SSHTARGET-ci@b1.delta.chat}
|
||||||
|
|
||||||
# we construct the BUILDDIR such that we can easily share the
|
|
||||||
# CARGO_TARGET_DIR between runs ("..")
|
|
||||||
export BUILDDIR=ci_builds/$REPONAME/$BRANCH/${CIRCLE_JOB:?jobname}/${CIRCLE_BUILD_NUM:?circle-build-number}
|
export BUILDDIR=ci_builds/$REPONAME/$BRANCH/${CIRCLE_JOB:?jobname}/${CIRCLE_BUILD_NUM:?circle-build-number}
|
||||||
|
|
||||||
echo "--- Copying files to $SSHTARGET:$BUILDDIR"
|
echo "--- Copying files to $SSHTARGET:$BUILDDIR"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ export BRANCH=${CIRCLE_BRANCH:?branch to build}
|
|||||||
export REPONAME=${CIRCLE_PROJECT_REPONAME:?repository name}
|
export REPONAME=${CIRCLE_PROJECT_REPONAME:?repository name}
|
||||||
export SSHTARGET=${SSHTARGET-ci@b1.delta.chat}
|
export SSHTARGET=${SSHTARGET-ci@b1.delta.chat}
|
||||||
|
|
||||||
# we construct the BUILDDIR such that we can easily share the
|
|
||||||
# CARGO_TARGET_DIR between runs ("..")
|
|
||||||
export BUILDDIR=ci_builds/$REPONAME/$BRANCH/${CIRCLE_JOB:?jobname}/${CIRCLE_BUILD_NUM:?circle-build-number}
|
export BUILDDIR=ci_builds/$REPONAME/$BRANCH/${CIRCLE_JOB:?jobname}/${CIRCLE_BUILD_NUM:?circle-build-number}
|
||||||
|
|
||||||
echo "--- Copying files to $SSHTARGET:$BUILDDIR"
|
echo "--- Copying files to $SSHTARGET:$BUILDDIR"
|
||||||
@@ -30,9 +28,6 @@ ssh $SSHTARGET <<_HERE
|
|||||||
|
|
||||||
export RUSTC_WRAPPER=\`which sccache\`
|
export RUSTC_WRAPPER=\`which sccache\`
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
# let's share the target dir with our last run on this branch/job-type
|
|
||||||
# cargo will make sure to block/unblock us properly
|
|
||||||
export CARGO_TARGET_DIR=\`pwd\`/../target-python
|
|
||||||
export TARGET=release
|
export TARGET=release
|
||||||
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
|
export DCC_PY_LIVECONFIG=$DCC_PY_LIVECONFIG
|
||||||
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ export BRANCH=${CIRCLE_BRANCH:?branch to build}
|
|||||||
export REPONAME=${CIRCLE_PROJECT_REPONAME:?repository name}
|
export REPONAME=${CIRCLE_PROJECT_REPONAME:?repository name}
|
||||||
export SSHTARGET=${SSHTARGET-ci@b1.delta.chat}
|
export SSHTARGET=${SSHTARGET-ci@b1.delta.chat}
|
||||||
|
|
||||||
# we construct the BUILDDIR such that we can easily share the
|
|
||||||
# CARGO_TARGET_DIR between runs ("..")
|
|
||||||
export BUILDDIR=ci_builds/$REPONAME/$BRANCH/${CIRCLE_JOB:?jobname}/${CIRCLE_BUILD_NUM:?circle-build-number}
|
export BUILDDIR=ci_builds/$REPONAME/$BRANCH/${CIRCLE_JOB:?jobname}/${CIRCLE_BUILD_NUM:?circle-build-number}
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@@ -24,9 +22,6 @@ ssh $SSHTARGET <<_HERE
|
|||||||
shopt -s huponexit
|
shopt -s huponexit
|
||||||
export RUSTC_WRAPPER=\`which sccache\`
|
export RUSTC_WRAPPER=\`which sccache\`
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
# let's share the target dir with our last run on this branch/job-type
|
|
||||||
# cargo will make sure to block/unblock us properly
|
|
||||||
export CARGO_TARGET_DIR=\`pwd\`/../target-rust
|
|
||||||
export TARGET=x86_64-unknown-linux-gnu
|
export TARGET=x86_64-unknown-linux-gnu
|
||||||
export RUSTC_WRAPPER=sccache
|
export RUSTC_WRAPPER=sccache
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user