Skip to content

Commit 554bad9

Browse files
committed
Fix smoke test for cross-compilation
1 parent e459819 commit 554bad9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,20 @@ jobs:
150150
ls
151151
echo 2 vm
152152
ls vm
153+
sudo rsync -a --exclude=stage2/lib/rustlib/src --exclude=stage2/lib/rustlib/rustc-src/ rust/build/${{ matrix.arch.host_target }}/stage2 vm/home/stage2
153154
echo 3 vm/home
154155
ls vm/home
155-
echo ****
156-
sudo rsync -a --exclude=stage2/lib/rustlib/src --exclude=stage2/lib/rustlib/rustc-src/ rust/build/m68k-unknown-linux-gnu/stage2 vm/home/stage2
156+
echo 4 vm/home/stage2
157+
ls vm/home/stage2
158+
echo 5 vm/home/stage2/bin
159+
ls vm/home/stage2/bin
160+
echo 6
157161
158162
- name: Smoke test
159163
if: ${{ matrix.arch.cross_target != '' }}
160164
run: |
161-
sudo chroot vm qemu-m68k-static /home/stage2/rustc > output
165+
sudo chroot vm qemu-${{ matrix.arch.cross_target }}-static /bin/sh -c '/home/stage2/bin/rustc' > output
166+
echo output
162167
grep rustc output
163168
164169
- name: Compile test program

0 commit comments

Comments
 (0)