From 5c358cef71353d2316d44d8b39ae472f5e169db7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 5 Aug 2021 10:35:40 +0200 Subject: [PATCH] ci: build with clang --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2175677..237041e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,14 +14,20 @@ jobs: run: | pacman-key --init pacman -Syu --noconfirm - pacman -S --noconfirm git meson glslang libcap wlroots \ + pacman -S --noconfirm git meson clang glslang libcap wlroots \ sdl2 vulkan-headers libx11 libxcomposite libxrender libxres \ libxtst libxkbcommon libdrm libinput wayland-protocols \ xorg-xwayland - uses: actions/checkout@v2 with: submodules: recursive - - name: Build + - name: Build with gcc run: | - meson build/ - ninja -C build/ + export CC=gcc CXX=g++ + meson build-gcc/ + ninja -C build-gcc/ + - name: Build with clang + run: | + export CC=clang CXX=clang++ + meson build-clang/ + ninja -C build-clang/