Skip to content

Commit 9ef7150

Browse files
committed
Create libgccjit-libs-dir
1 parent f7cfb8f commit 9ef7150

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/nightly_rustc.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
matrix:
1818
arch:
1919
- host_target: "x86_64-unknown-linux-gnu"
20+
cross_target: ""
2021
gcc_urls: >
2122
https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb
2223
- host_target: "m68k-unknown-linux-gnu"
24+
cross_target: "m68k"
2325
gcc_urls: >
2426
https://github.com/rust-lang/gcc/releases/latest/download/gcc-15.deb
25-
https://github.com/cross-cg-gcc-tools/cross-gcc/releases/latest/download/gcc-m68k-15.deb
2627
2728
steps:
2829
- uses: actions/checkout@v4
@@ -36,6 +37,8 @@ jobs:
3637
fetch-depth: 10
3738

3839
- run: |
40+
echo $HOME
41+
echo "*****"
3942
ls
4043
echo "*****"
4144
ls ..
@@ -59,9 +62,32 @@ jobs:
5962
done
6063
6164
# TODO: patch linux-raw-sys and rustix.
65+
- name: Move libgccjit.so in libgccjit-libs-dir
66+
if: ${{ matrix.arch.cross_target != '' }}
67+
run: |
68+
curl -LO https://github.com/cross-cg-gcc-tools/cross-gcc/releases/latest/download/gcc-${{ matrix.arch.cross_target }}-15.deb
69+
70+
sudo dpkg-deb -x gcc-${{ matrix.arch.cross_target }}-15.deb cross-gcc
71+
echo ****
72+
ls cross-gcc
73+
echo ****
74+
ls cross-gcc/usr/lib
75+
echo ****
76+
ls -R
77+
dir=$HOME/libgccjit-libs-dir/x86_64-unknown-linux-gnu/${{ matrix.arch.host_target }}
78+
mkdir -p $dir
79+
# TODO: create a symlink instead of a copy.
80+
cp cross-gcc/usr/lib/libgccjit.so.0.0.1 $dir/libgccjit.so
81+
82+
echo "$(pwd)/cross-gcc/usr/bin" >> $GITHUB_PATH
83+
84+
ls /home/runner/libgccjit-libs-dir/x86_64-unknown-linux-gnu/m68k-unknown-linux-gnu/libgccjit.so
85+
echo ****
86+
ls -R /home/runner/libgccjit-libs-dir
6287
6388
- name: Compile rustc
6489
run: |
90+
echo $PATH
6591
cd rust
6692
# TODO: add --host=${{ matrix.arch.host_target }} if needed (should not be since it's in the toml config file)
6793
./x build --stage 2 --config ../rustc_codegen_gcc/tests/bootstraps/bootstrap.${{ matrix.arch.host_target }}.toml

0 commit comments

Comments
 (0)