gamescope/.github/workflows/main.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

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 \
2023-01-12 01:29:54 +00:00
sdl2 vulkan-headers libx11 libxmu libxcomposite libxrender libxres \
2023-05-09 15:34:41 +00:00
libxtst libxkbcommon libdrm libinput wayland-protocols benchmark \
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++
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++
meson build-clang/ --werror --auto-features=enabled
2021-08-05 08:35:40 +00:00
ninja -C build-clang/