File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,18 @@ jobs:
3737 TRIPLE : ${{ matrix.config.triple }}
3838 steps :
3939 - uses : actions/checkout@v4
40- - name : Install qemu and toolchain gcc-${{ matrix.config.triple }}
40+ - name : Install qemu
4141 run : |
4242 sudo apt update
43- sudo apt install qemu-user qemu-user-binfmt gcc-$TRIPLE -y
43+ sudo apt install -y qemu-user qemu-user-binfmt
44+ - name : Install gcc-${{ matrix.config.triple }}
45+ if : ${{ 'loongarch64' != matrix.config.arch }}
46+ run : sudo apt install -y gcc-$TRIPLE
47+ - name : Install gcc-${{ matrix.config.triple }}
48+ if : ${{ 'loongarch64' == matrix.config.arch }}
49+ # package gcc-loongarch64-linux-gnu seems not exist
50+ # https://packages.debian.org/sid/amd64/gcc-loongarch64-linux-gnu
51+ run : sudo apt install -y gcc-14-loongarch64-linux-gnu cpp-loongarch64-linux-gnu
4452 - name : Build with ${{ matrix.config.triple }}-gcc
4553 run : make ARCH=$ARCH TOOLPREFIX=$TRIPLE-
4654 - name : Build tests
You can’t perform that action at this time.
0 commit comments