2021-08-05 07:58:31 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: archlinux:base-devel
|
|
|
|
steps:
|
|
|
|
- name: Prepare
|
|
|
|
run: |
|
|
|
|
pacman-key --init
|
|
|
|
pacman -Syu --noconfirm
|
2021-08-05 08:35:40 +00:00
|
|
|
pacman -S --noconfirm git meson clang glslang libcap wlroots \
|
2021-08-05 07:58:31 +00:00
|
|
|
sdl2 vulkan-headers libx11 libxcomposite libxrender libxres \
|
|
|
|
libxtst libxkbcommon libdrm libinput wayland-protocols \
|
2023-01-11 20:26:00 +00:00
|
|
|
xorg-xwayland pipewire cmake
|
2021-08-05 07:58:31 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-08-05 08:35:40 +00:00
|
|
|
- name: Build with gcc
|
2021-08-05 07:58:31 +00:00
|
|
|
run: |
|
2021-08-05 08:35:40 +00:00
|
|
|
export CC=gcc CXX=g++
|
2021-09-15 17:43:06 +00:00
|
|
|
meson build-gcc/ --werror --auto-features=enabled
|
2021-08-05 08:35:40 +00:00
|
|
|
ninja -C build-gcc/
|
2023-01-11 20:48:13 +00:00
|
|
|
- name: Build with gcc (no vr)
|
|
|
|
run: |
|
|
|
|
export CC=gcc CXX=g++
|
|
|
|
meson build-gcc-novr/ -Denable_openvr_support=false --werror --auto-features=enabled
|
|
|
|
ninja -C build-gcc-novr/
|
2021-08-05 08:35:40 +00:00
|
|
|
- name: Build with clang
|
|
|
|
run: |
|
|
|
|
export CC=clang CXX=clang++
|
2021-09-15 17:43:06 +00:00
|
|
|
meson build-clang/ --werror --auto-features=enabled
|
2021-08-05 08:35:40 +00:00
|
|
|
ninja -C build-clang/
|