File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 7
7
- bash : docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
8
8
displayName : Set up QEMU
9
9
10
- - bash : docker run --rm -v $(pwd):/work:rw,Z tectonictypesetting/ttcross:latest
11
- displayName : Install custom-built cross tool
10
+ - bash : cargo install cross
11
+ displayName : Install cross
12
12
13
13
- bash : |
14
+ HOST_UID=$(id -u)
15
+ HOST_GID=$(id -g)
14
16
echo "##vso[task.setvariable variable=CROSS_ARGS;]--target=$TARGET --release"
17
+ echo "##vso[task.setvariable variable=CROSS_ROOTLESS_CONTAINER_ENGINE;]1"
18
+ echo "##vso[task.setvariable variable=DOCKER_OPTS;]--privileged -e HOST_UID=${HOST_UID} -e HOST_GID=${HOST_GID}"
15
19
displayName : Set build variables
16
20
17
21
# Main build/test
18
22
19
- - bash : ./ cross build $CROSS_ARGS --all
23
+ - bash : cross build $CROSS_ARGS --all
20
24
displayName : " cross build"
21
25
22
- - bash : ./ cross test $CROSS_ARGS --all
26
+ - bash : cross test $CROSS_ARGS --all
23
27
displayName : " cross test"
24
28
25
29
# Publish binaries
28
32
set -ex
29
33
artifact_dir="$(Build.ArtifactStagingDirectory)/binary-$TARGET"
30
34
mkdir -p "$artifact_dir"
31
- cranko cargo package-released-binaries --command-name=./ cross --reroot=. \
35
+ cranko cargo package-released-binaries --command-name=cross --reroot=. \
32
36
-t $TARGET \
33
37
$artifact_dir \
34
38
-- build $CROSS_ARGS
You can’t perform that action at this time.
0 commit comments