ci: fixed whitespace in main.yml

This commit is contained in:
ry 2026-06-12 11:28:58 -07:00 committed by GitHub
parent 6a02ae08d1
commit d20b5432e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,83 +1,83 @@
name: Continuous integration build name: Continuous integration build
on: on:
push: push:
branches: [master] branches: [ master ]
pull_request: pull_request:
branches: [master] branches: [ master ]
env: env:
WLROOTS_VERSION: "0.20" WLROOTS_VERSION: "0.20"
ALPINE_PACKAGES: "build-base xcb-util-wm-dev libseat-dev clang git eudev-dev mesa-dev libdrm-dev libinput-dev libxkbcommon-dev pixman-dev wayland-dev meson wayland-protocols xwayland-dev scdoc-doc hwdata libdisplay-info-dev" ALPINE_PACKAGES: "build-base xcb-util-wm-dev libseat-dev clang git eudev-dev mesa-dev libdrm-dev libinput-dev libxkbcommon-dev pixman-dev wayland-dev meson wayland-protocols xwayland-dev scdoc-doc hwdata libdisplay-info-dev"
ARCHLINUX_PACKAGES: "xcb-util-wm seatd git clang meson libinput libdrm mesa libxkbcommon wayland wayland-protocols xorg-server-xwayland scdoc libdisplay-info" ARCHLINUX_PACKAGES: "xcb-util-wm seatd git clang meson libinput libdrm mesa libxkbcommon wayland wayland-protocols xorg-server-xwayland scdoc libdisplay-info"
jobs: jobs:
compile: compile:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
CC: [gcc, clang] CC: [ gcc, clang ]
OS: ["alpine:edge", "archlinux:base-devel"] OS: [ "alpine:edge", "archlinux:base-devel" ]
xwayland: [enabled, disabled] xwayland: [ enabled, disabled ]
container: ${{ matrix.OS }} container: ${{ matrix.OS }}
env: env:
CC: ${{ matrix.CC }} CC: ${{ matrix.CC }}
steps: steps:
- name: Checkout Cage - name: Checkout Cage
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies (Alpine) - name: Install dependencies (Alpine)
if: "matrix.OS == 'alpine:edge'" if: "matrix.OS == 'alpine:edge'"
run: apk add $ALPINE_PACKAGES run: apk add $ALPINE_PACKAGES
- name: Install dependencies (Arch) - name: Install dependencies (Arch)
if: "matrix.OS == 'archlinux:base-devel'" if: "matrix.OS == 'archlinux:base-devel'"
run: | run: |
pacman-key --init pacman-key --init
pacman -Syu --noconfirm $ARCHLINUX_PACKAGES pacman -Syu --noconfirm $ARCHLINUX_PACKAGES
- 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 $WLROOTS_VERSION run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b $WLROOTS_VERSION
- name: Compile Cage (XWayland=${{ matrix.xwayland }}) - name: Compile Cage (XWayland=${{ matrix.xwayland }})
run: | run: |
meson setup --fatal-meson-warnings --wrap-mode=nodownload \ meson setup --fatal-meson-warnings --wrap-mode=nodownload \
build-${{ matrix.CC }}-${{matrix.xwayland }} \ build-${{ matrix.CC }}-${{matrix.xwayland }} \
-Dwlroots:xwayland=${{ matrix.xwayland }} -Dwlroots:xwayland=${{ matrix.xwayland }}
ninja -C build-${{ matrix.CC }}-${{matrix.xwayland }} ninja -C build-${{ matrix.CC }}-${{matrix.xwayland }}
format: format:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: "archlinux:base-devel" container: "archlinux:base-devel"
steps: steps:
- name: Checkout Cage - name: Checkout Cage
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
pacman-key --init pacman-key --init
pacman -Syu --noconfirm $ARCHLINUX_PACKAGES pacman -Syu --noconfirm $ARCHLINUX_PACKAGES
- 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 $WLROOTS_VERSION run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b $WLROOTS_VERSION
- name: Check for formatting changes - name: Check for formatting changes
run: | run: |
meson setup --wrap-mode=nodownload build-clang-format -Dwlroots:xwayland=enabled meson setup --wrap-mode=nodownload build-clang-format -Dwlroots:xwayland=enabled
ninja -C build-clang-format clang-format-check ninja -C build-clang-format clang-format-check
scan-build: scan-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: "archlinux:base-devel" container: "archlinux:base-devel"
env: env:
CC: clang CC: clang
steps: steps:
- name: Checkout Cage - name: Checkout Cage
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
pacman-key --init pacman-key --init
pacman -Syu --noconfirm $ARCHLINUX_PACKAGES pacman -Syu --noconfirm $ARCHLINUX_PACKAGES
- 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 $WLROOTS_VERSION run: git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots -b $WLROOTS_VERSION
- name: Run scan-build - name: Run scan-build
run: | run: |
meson setup --wrap-mode=nodownload build-scan-build -Dwlroots:xwayland=enabled meson setup --wrap-mode=nodownload build-scan-build -Dwlroots:xwayland=enabled
ninja -C build-scan-build scan-build ninja -C build-scan-build scan-build