Skip to content

Commit fb18ea7

Browse files
committed
WIP: DONOTMERGE
1 parent 87852f0 commit fb18ea7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ci/test-docker-in-docker.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ci_dir=$(realpath "${ci_dir}")
2323
. "${ci_dir}"/shared.sh
2424

2525
main() {
26-
docker run -v "${PROJECT_HOME}":"${PROJECT_HOME}" -w "${PROJECT_HOME}" \
26+
docker run --platform linux/amd64 -v "${PROJECT_HOME}":"${PROJECT_HOME}" -w "${PROJECT_HOME}" \
2727
--rm -e TARGET -e RUSTFLAGS -e RUST_TEST_THREADS \
2828
-e LLVM_PROFILE_FILE -e CARGO_INCREMENTAL \
2929
-e "CROSS_TARGET_${TARGET_UPPER//-/_}_IMAGE" \
@@ -56,6 +56,7 @@ cd "${td}"
5656
cross build --target "${TARGET}" --workspace \
5757
--manifest-path="./workspace/Cargo.toml" --verbose
5858
cd workspace
59+
echo -e "[target.${TARGET}]\npre-build = ["exit 0"]"
5960
cross build --target "${TARGET}" --workspace --verbose
6061
cd binary
6162
cross run --target "${TARGET}" --verbose

src/docker/shared.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,13 @@ pub struct DockerPaths {
196196
impl DockerPaths {
197197
pub fn create(
198198
engine: &Engine,
199-
metadata: CargoMetadata,
199+
mut metadata: CargoMetadata,
200200
cwd: PathBuf,
201201
toolchain: QualifiedToolchain,
202202
) -> Result<Self> {
203203
let mount_finder = MountFinder::create(engine)?;
204204
let directories = Directories::create(&mount_finder, &metadata, &cwd, toolchain)?;
205+
metadata.target_directory = directories.target.clone();
205206
Ok(Self {
206207
mount_finder,
207208
metadata,

0 commit comments

Comments
 (0)