mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-08 08:21:12 -04:00
ci: Build with/without Xwayland in same task
This commit is contained in:
parent
6340f46402
commit
3b813cd87c
1 changed files with 8 additions and 5 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
|
@ -12,7 +12,6 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
OS: [ "alpine:edge", "archlinux:base-devel" ]
|
OS: [ "alpine:edge", "archlinux:base-devel" ]
|
||||||
xwayland: [ enabled, disabled ]
|
|
||||||
container: ${{ matrix.OS }}
|
container: ${{ matrix.OS }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Cage
|
- name: Checkout Cage
|
||||||
|
|
@ -31,11 +30,15 @@ jobs:
|
||||||
- name: Fetch wlroots as a subproject
|
- name: Fetch wlroots as a subproject
|
||||||
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b 0.17.0
|
run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b 0.17.0
|
||||||
|
|
||||||
# TODO: use --fatal-meson-warnings when on wlroots 0.15.0
|
- name: Compile Cage
|
||||||
- name: Compile Cage (XWayland=${{ matrix.xwayland }})
|
|
||||||
run: |
|
run: |
|
||||||
meson build-${{ matrix.CC }}-${{matrix.xwayland }} -Dxwayland=${{ matrix.xwayland }}
|
meson setup build -Dxwayland=enabled
|
||||||
ninja -C build-${{ matrix.CC }}-${{matrix.xwayland }}
|
ninja -C build
|
||||||
|
|
||||||
|
- name: Compile cage (no xwayland)
|
||||||
|
run: |
|
||||||
|
meson configure build -Dxwayland=disabled
|
||||||
|
ninja -C build
|
||||||
|
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue