Skip to content

Commit fecadd9

Browse files
committed
Manually run in a VM in the m68k CI
1 parent 3021598 commit fecadd9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/m68k.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ jobs:
108108
run: |
109109
./y.sh build --target-triple m68k-unknown-linux-gnu
110110
111+
vm_dir=$(pwd)/vm
111112
cd tests/hello-world
112113
CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo build --target m68k-unknown-linux-gnu
113-
CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo run --target m68k-unknown-linux-gnu > hello_world_stdout
114+
cp target/m68k-unknown-linux-gnu/debug/hello_world $vm_dir/home/
115+
sudo chroot $vm_dir qemu-m68k-static /home/hello_world > hello_world_stdout
114116
test $(cat hello_world_stdout) == "Hello, world!" || exit 1
115117
116118
# Summary job for the merge queue.

build_system/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ impl ConfigInfo {
374374
if self.target_triple.is_empty() {
375375
return Err("Unknown non-native platform".to_string());
376376
}
377+
// TODO: check if this is still needed.
377378
linker = Some(format!("-Clinker={}-gcc", self.target_triple));
378379
self.run_in_vm = true;
379380
}

0 commit comments

Comments
 (0)