Skip to content

Commit 9d9105e

Browse files
committed
Cleanup
1 parent 359be2c commit 9d9105e

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@ jobs:
1818
arch:
1919
- host_target: "x86_64-unknown-linux-gnu"
2020
cross_target: ""
21-
gcc_urls: >
22-
https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb
2321
- host_target: "m68k-unknown-linux-gnu"
2422
cross_target: "m68k"
2523
debian_url: "http://ftp.ports.debian.org/debian-ports"
26-
gcc_urls: >
27-
https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb
2824

2925
steps:
3026
- uses: actions/checkout@v4
@@ -37,6 +33,7 @@ jobs:
3733
path: "rust"
3834
fetch-depth: 10
3935

36+
# The compilation of rustc for m68k requires a lot of disk space, so free some space up.
4037
- name: Free Disk Space
4138
uses: endersonmenezes/free-disk-space@v3
4239
with:
@@ -64,11 +61,8 @@ jobs:
6461

6562
- name: Download and install artifacts
6663
run: |
67-
urls=(${{ matrix.arch.gcc_urls }})
68-
for url in "${urls[@]}"; do
69-
curl -L -o package.deb $url
70-
sudo dpkg --force-overwrite -i package.deb
71-
done
64+
curl -L -o package.deb https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb
65+
sudo dpkg --force-overwrite -i package.deb
7266
7367
- name: Generate Debian qemu image
7468
if: ${{ matrix.arch.cross_target != '' }}
@@ -119,6 +113,8 @@ jobs:
119113
cd compiler/rustc_codegen_gcc/
120114
cargo update -p rustix
121115
116+
cd ../..
117+
122118
echo Checking Rust
123119
cargo tree -i linux-raw-sys 2>&1 | grep "was not used in the crate graph" && (echo "Unused patches found"; cargo tree; exit 1) || exit 0
124120
@@ -127,7 +123,6 @@ jobs:
127123
128124
- name: Compile rustc
129125
run: |
130-
echo $PATH
131126
cd rust
132127
./x build --host=${{ matrix.arch.host_target }} --stage 2 --config ../rustc_codegen_gcc/tests/bootstraps/bootstrap.${{ matrix.arch.host_target }}.toml
133128
@@ -146,29 +141,17 @@ jobs:
146141
- name: Copy toolchain in VM
147142
if: ${{ matrix.arch.cross_target != '' }}
148143
run: |
149-
echo 1 .
150-
ls
151-
echo 2 vm
152-
ls vm
153144
sudo rsync -a --exclude=stage2/lib/rustlib/src --exclude=stage2/lib/rustlib/rustc-src/ rust/build/${{ matrix.arch.host_target }}/stage2/ vm/home/stage2
154-
echo 3 vm/home
155-
ls vm/home
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
163145
164146
- name: Smoke test
165147
if: ${{ matrix.arch.cross_target != '' }}
166148
run: |
167149
sudo chroot vm qemu-${{ matrix.arch.cross_target }}-static /bin/sh -c '/home/stage2/bin/rustc' > output
168-
echo output
169150
grep rustc output
170151
171152
- name: Compile test program
153+
# TODO: also compile a test program for m68k when the compiler works.
154+
if: ${{ matrix.arch.cross_target == '' }}
172155
run: |
173156
cd rustc_codegen_gcc/tests/hello-world
174157
cargo +my-toolchain build

0 commit comments

Comments
 (0)