DO NOT MERGE, reduce CI matrix #4245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- 'ci/**' | |
- '!ci/gha**' | |
- 'dependabot/**' | |
pull_request: | |
branches: | |
- 'master' | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clang-qemu: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- version: 18 | |
cross: loongarch64 | |
arch_deb: loong64 | |
arch_gnu: loongarch64 | |
distro: ubuntu-24.04 | |
runs-on: ${{ matrix.distro }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- run: sudo apt-get update | |
- name: CPU Information | |
run: cat /proc/cpuinfo | |
- name: Install APT Dependencies | |
run: | | |
sudo apt-get update -y | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa && \ | |
sudo apt-get -yq install ninja-build \ | |
binfmt-support clang-${{ matrix.version }} \ | |
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-14-dev-${{ matrix.arch_deb }}-cross \ | |
binutils-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} | |
pipx install meson==0.55.1 | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ github.job }}-${{ matrix.version }}${{ matrix.extra }}-${{ matrix.cross }} | |
- name: add ccache to the build path | |
run: | | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | |
- name: Configure | |
run: | | |
meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-clang-${{ matrix.version }}${{ matrix.extra }}-ccache.cross build \ | |
|| (cat build/meson-logs/meson-log.txt ; false) | |
- name: Build | |
run: ninja -C build -v | |
- name: Test | |
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul) | |