Skip to content

Commit 034ea61

Browse files
committed
Fix smoke test for cross-compilation
1 parent e459819 commit 034ea61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,13 @@ jobs:
153153
echo 3 vm/home
154154
ls vm/home
155155
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+
sudo rsync -a --exclude=stage2/lib/rustlib/src --exclude=stage2/lib/rustlib/rustc-src/ rust/build/${{ matrix.arch.host_target }}/stage2 vm/home/stage2
157157
158158
- name: Smoke test
159159
if: ${{ matrix.arch.cross_target != '' }}
160160
run: |
161-
sudo chroot vm qemu-m68k-static /home/stage2/rustc > output
161+
sudo chroot vm qemu-${{ matrix.arch.cross_target }}-static /bin/sh -c '/home/stage2/rustc' > output
162+
echo output
162163
grep rustc output
163164
164165
- name: Compile test program

0 commit comments

Comments
 (0)