Skip to content

Commit 9ae0a25

Browse files
committed
Create libgccjit-libs-dir
1 parent 5b21e62 commit 9ae0a25

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/nightly_rustc.yml

Lines changed: 15 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,6 +62,17 @@ 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+
sudo dpkg --root=cross-gcc -i gcc-${{ matrix.arch.cross_target }}-15.deb
70+
ls cross-gcc
71+
ls cross-gcc/usr/lib
72+
dir=$HOME/libgccjit-libs-dir/x86_64-unknown-linux-gnu/${{ matrix.arch.host_target }}
73+
mkdir -p $dir
74+
# TODO: create a symlink instead of a copy.
75+
cp cross-gcc/usr/lib/libgccjit.so.0.0.1 $dir
6276
6377
- name: Compile rustc
6478
run: |

0 commit comments

Comments
 (0)