File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff 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
3637 fetch-depth : 10
3738
3839 - run : |
40+ echo $HOME
41+ echo "*****"
3942 ls
4043 echo "*****"
4144 ls ..
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 ./x build --host=${{ matrix.arch.host_target }} --stage 2 --config ../rustc_codegen_gcc/tests/bootstraps/bootstrap.${{ matrix.arch.host_target }}.toml
6793
You can’t perform that action at this time.
0 commit comments