Skip to content

Commit

Permalink
egl-wayland: enable CI with github actions
Browse files Browse the repository at this point in the history
This enables CI for github actions builds, aimed for helping verify
new pull requests. This adds tests for the meson and autotools builds
on ubuntu 24.04. Other distros are apparently not supported by default
so we aren't able to expand testing this way.
  • Loading branch information
Austin Shafer authored and amshafer committed Oct 15, 2024
1 parent c10c530 commit 40e835f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/arch-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Arch Build
on: [push, pull_request]
jobs:
Meson-Build:
runs-on: ubuntu-24.04
container:
image: archlinux:latest
steps:
- uses: actions/checkout@v4
- run: pacman --noconfirm -Syy
- run: pacman --noconfirm -S wayland-protocols libdrm libglvnd pkgconf
- run: pacman --noconfirm -S wayland eglexternalplatform
- run: pacman --noconfirm -S meson ninja gcc
- run: meson build
- run: ninja -C build
- run: ninja -C build install
14 changes: 14 additions & 0 deletions .github/workflows/autoconf-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Autotools GCC Build
on: [push, pull_request]
jobs:
Meson-Build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt install -y wayland-protocols libdrm-dev libegl-dev
- run: sudo apt install -y libwayland-dev libwayland-egl-backend-dev eglexternalplatform-dev
- run: sudo apt install -y meson ninja-build gcc
- run: ./autogen.sh
- run: make
- run: sudo make install
14 changes: 14 additions & 0 deletions .github/workflows/meson-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Meson GCC Build
on: [push, pull_request]
jobs:
Meson-Build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt install -y wayland-protocols libdrm-dev libegl-dev
- run: sudo apt install -y libwayland-dev libwayland-egl-backend-dev eglexternalplatform-dev
- run: sudo apt install -y meson ninja-build gcc
- run: meson build
- run: ninja -C build
- run: sudo ninja -C build install
17 changes: 17 additions & 0 deletions .github/workflows/meson-llvm-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Meson LLVM Build
on: [push, pull_request]
jobs:
Meson-Build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo apt update
- run: sudo apt install -y wayland-protocols libdrm-dev libegl-dev
- run: sudo apt install -y libwayland-dev libwayland-egl-backend-dev eglexternalplatform-dev
- run: sudo apt install -y meson ninja-build clang
- name: meson build
run: meson build
env:
CC: clang
- run: ninja -C build
- run: sudo ninja -C build install

0 comments on commit 40e835f

Please sign in to comment.