Skip to content

Commit 359be2c

Browse files
committed
Fix smoke test for cross-compilation
1 parent e459819 commit 359be2c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,22 @@ 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 -l vm/home/stage2
158+
echo 5 vm/home/stage2/stage2
159+
ls vm/home/stage2/stage2 || true
160+
echo 6 vm/home/stage2/bin
161+
ls vm/home/stage2/bin
162+
echo 7
157163
158164
- name: Smoke test
159165
if: ${{ matrix.arch.cross_target != '' }}
160166
run: |
161-
sudo chroot vm qemu-m68k-static /home/stage2/rustc > output
167+
sudo chroot vm qemu-${{ matrix.arch.cross_target }}-static /bin/sh -c '/home/stage2/bin/rustc' > output
168+
echo output
162169
grep rustc output
163170
164171
- name: Compile test program

0 commit comments

Comments
 (0)