Skip to content

Commit a25ca73

Browse files
committed
Switch to using baseline cross
1 parent 91f0ce1 commit a25ca73

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

dist/azure-build-and-test-cross.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ steps:
77
- bash: docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
88
displayName: Set up QEMU
99

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
1212

1313
- bash: |
14+
HOST_UID=$(id -u)
15+
HOST_GID=$(id -g)
1416
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}"
1519
displayName: Set build variables
1620

1721
# Main build/test
1822

19-
- bash: ./cross build $CROSS_ARGS --all
23+
- bash: cross build $CROSS_ARGS --all
2024
displayName: "cross build"
2125

22-
- bash: ./cross test $CROSS_ARGS --all
26+
- bash: cross test $CROSS_ARGS --all
2327
displayName: "cross test"
2428

2529
# Publish binaries
@@ -28,7 +32,7 @@ steps:
2832
set -ex
2933
artifact_dir="$(Build.ArtifactStagingDirectory)/binary-$TARGET"
3034
mkdir -p "$artifact_dir"
31-
cranko cargo package-released-binaries --command-name=./cross --reroot=. \
35+
cranko cargo package-released-binaries --command-name=cross --reroot=. \
3236
-t $TARGET \
3337
$artifact_dir \
3438
-- build $CROSS_ARGS

0 commit comments

Comments
 (0)