gh-actions: add clang-17 #3894
Workflow file for this run
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**' | |
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: 17 | |
cross: armv7 | |
arch_deb: armhf | |
arch_gnu_abi: eabihf | |
arch_gnu: arm | |
distro: ubuntu-22.04 | |
- version: 17 | |
cross: aarch64 | |
arch_gnu: aarch64 | |
arch_deb: arm64 | |
distro: ubuntu-22.04 | |
- version: 17 | |
cross: armel | |
arch_gnu_abi: eabi | |
arch_deb: armel | |
arch_gnu: arm | |
distro: ubuntu-22.04 | |
- version: 17 | |
cross: riscv64 | |
arch_gnu: riscv64 | |
arch_deb: riscv64 | |
distro: ubuntu-22.04 | |
- version: 17 | |
cross: s390x | |
arch_gnu: s390x | |
arch_deb: s390x | |
distro: ubuntu-22.04 | |
- version: 17 | |
cross: ppc64el | |
arch_deb: ppc64el | |
arch_gnu: powerpc64le | |
distro: ubuntu-22.04 | |
# - version: 16 | |
# cross: mips64el # needs newer Ubuntu (23.04+) | |
# arch_deb: mips64el | |
# arch_gnu: mips64el | |
# arch_gnu_abi: abi64 | |
# distro: ubuntu-22.04 | |
runs-on: ${{ matrix.distro }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: sudo apt-get update | |
- name: CPU Information | |
run: cat /proc/cpuinfo | |
- name: Install APT Dependencies | |
run: | | |
sudo add-apt-repository ppa:savoury1/virtualisation | |
sudo add-apt-repository ppa:savoury1/display | |
sudo apt-get update -y | |
sudo apt-get -yq install ninja-build parallel \ | |
binfmt-support clang-${{ matrix.version }} clang++-${{ matrix.version }} \ | |
qemu-user-static python3-pip libc6-${{ matrix.arch_deb }}-cross libstdc++-12-dev-${{ matrix.arch_deb }}-cross \ | |
binutils-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} | |
sudo python3 -m pip install meson==0.55.0 | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ github.job }}-${{ matrix.distro }}-${{ 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 }}-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) | |
clang: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- version: "7" | |
distro: ubuntu-20.04 | |
arch_flags: -march=native | |
# clang-8 is tested on Semaphore-CI https://nemequ.semaphoreci.com/projects/simde | |
- version: "9" | |
distro: ubuntu-20.04 | |
arch_flags: -march=native | |
# clang-10 is tested on Semaphore-CI https://nemequ.semaphoreci.com/projects/simde | |
- version: "11" | |
distro: ubuntu-22.04 | |
arch_flags: -march=native | |
- version: "12" | |
distro: ubuntu-20.04 | |
arch_flags: -march=native | |
- version: "12" | |
distro: ubuntu-20.04 | |
arch_flags: -ffast-math | |
ccache: 'true' | |
- version: "13" | |
distro: ubuntu-22.04 | |
arch_flags: -march=native | |
- version: "13" | |
distro: ubuntu-22.04 | |
arch_flags: -ffast-math | |
ccache: 'true' | |
- version: "14" | |
distro: ubuntu-22.04 | |
arch_flags: -march=native | |
- version: "14" | |
distro: ubuntu-22.04 | |
arch_flags: -ffast-math | |
ccache: 'true' | |
- version: "15" | |
distro: ubuntu-22.04 | |
arch_flags: -march=native | |
- version: "15" | |
distro: ubuntu-22.04 | |
arch_flags: -ffast-math | |
ccache: 'true' | |
- version: "17" | |
distro: ubuntu-22.04 | |
arch_flags: -march=native -Wno-unsafe-buffer-usage | |
- version: "17" | |
distro: ubuntu-22.04 | |
arch_flags: -ffast-math -Wno-unsafe-buffer-usage | |
ccache: 'true' | |
runs-on: ${{ matrix.distro }} | |
env: | |
CFLAGS: ${{ matrix.arch_flags }} -Wall -Weverything -Werror -fno-lax-vector-conversions | |
CXXFLAGS: ${{ matrix.arch_flags }} -Wall -Weverything -Werror -fno-lax-vector-conversions | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: CPU Information | |
run: cat /proc/cpuinfo | |
- name: Install APT Dependencies | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo add-apt-repository ppa:savoury1/display | |
sudo apt-get update | |
sudo apt-get -yq install gcovr ninja-build python3-pip clang-${{ matrix.version }} | |
sudo python3 -m pip install meson==0.55.0 | |
sudo rm /usr/bin/gcc /usr/bin/g++ /usr/bin/cc /usr/bin/c++ | |
sudo ln -s $(command -v clang-${{ matrix.version }}) /usr/bin/cc | |
sudo ln -s $(command -v clang-${{ matrix.version }}) /usr/bin/c++ | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
if: ${{ matrix.ccache == 'true' }} | |
with: | |
key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.distro }}-${{ matrix.arch_flags }} | |
- name: add ccache to the build path | |
if: ${{ matrix.ccache == 'true' }} | |
run: | | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | |
- name: Configure | |
run: meson setup build | |
- name: Build | |
run: meson compile -C build --verbose | |
- name: Test | |
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul) |