Skip to content

Commit 616a1d4

Browse files
committed
ci: install pkgs in gcc-loongarch64-linux-gnu by manual
1 parent 1b4e6d3 commit 616a1d4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cross.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)