Skip to content

Commit

Permalink
Set HOME=/root and explicitly set cargo env.
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed May 18, 2020
1 parent 3cc4fa0 commit 9d320a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.ubuntu.ci
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN \
rustup default nightly-2020-02-01 &&\
# It seems that bindgen won't prettify without it:
rustup component add rustfmt-preview &&\
rm -f /tmp/rustup-init.sh
rm -f /tmp/rustup-init.sh &&\
chmod -R 777 /root

ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /mm2
6 changes: 4 additions & 2 deletions azure-pipelines-release-stage-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ jobs:
-v /home/azureagent/docker-cargo-cache/registry:/root/.cargo/registry \
-v $PWD:$PWD \
-w $PWD \
-e HOME=/root \
mm2_builder \
cargo build --features native -vv --target-dir target-xenial
/bin/bash -c "source /root/.cargo/env && cargo build --features native -vv --target-dir target-xenial"
else
cargo build --features native -vv
fi
Expand Down Expand Up @@ -95,8 +96,9 @@ jobs:
-v /home/azureagent/docker-cargo-cache/registry:/root/.cargo/registry \
-v $PWD:$PWD \
-w $PWD \
-e HOME=/root \
mm2_builder \
cargo build --features native --release -vv --target-dir target-xenial
/bin/bash -c "source /root/.cargo/env && cargo build --features native --release -vv --target-dir target-xenial"
else
cargo build --features native --release -vv
fi
Expand Down

0 comments on commit 9d320a6

Please sign in to comment.