We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4825336 commit e225eaeCopy full SHA for e225eae
ci/test-cross-image.sh
@@ -35,6 +35,17 @@ git clone --depth 1 https://github.com/cross-rs/rust-cpp-hello-word "${td}"
35
cd "${td}"
36
cross run --target "${TARGET}"
37
'
38
+td="$(mkcargotemp -d)"
39
+git clone --depth 1 https://github.com/cross-rs/rust-cpp-hello-word "${td}"
40
+echo '# Cross.toml
41
+[target.'${TARGET}']
42
+pre-build = ["exit 0"]
43
+' > Cross.toml
44
+cd "${td}"
45
+docker run --rm -e TARGET -e CROSS_CONTAINER_IN_CONTAINER=1 -e "CROSS_TARGET_${TARGET_UPPER//-/_}_IMAGE" \
46
+ -v /var/run/docker.sock:/var/run/docker.sock \
47
+ -v .:/mount -w /mount
48
+ "${CROSS_TARGET_CROSS_IMAGE}" cross build
49
}
50
51
main "${@}"
0 commit comments