Skip to content

Commit

Permalink
ci: install pkgs in gcc-loongarch64-linux-gnu by manual
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 5, 2025
1 parent 1b4e6d3 commit 616a1d4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ jobs:
TRIPLE: ${{ matrix.config.triple }}
steps:
- uses: actions/checkout@v4
- name: Install qemu and toolchain gcc-${{ matrix.config.triple }}
- name: Install qemu
run: |
sudo apt update
sudo apt install qemu-user qemu-user-binfmt gcc-$TRIPLE -y
sudo apt install -y qemu-user qemu-user-binfmt
- name: Install gcc-${{ matrix.config.triple }}
if: ${{ 'loongarch64' != matrix.config.arch }}
run: sudo apt install -y gcc-$TRIPLE
- name: Install gcc-${{ matrix.config.triple }}
if: ${{ 'loongarch64' == matrix.config.arch }}
# package gcc-loongarch64-linux-gnu seems not exist
# https://packages.debian.org/sid/amd64/gcc-loongarch64-linux-gnu
run: sudo apt install -y gcc-14-loongarch64-linux-gnu cpp-loongarch64-linux-gnu
- name: Build with ${{ matrix.config.triple }}-gcc
run: make ARCH=$ARCH TOOLPREFIX=$TRIPLE-
- name: Build tests
Expand Down

0 comments on commit 616a1d4

Please sign in to comment.