-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from migueldeoleiros/ci/add-ci
Create basic build ci
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y meson ninja-build gcc cmake pkg-config \ | ||
libxkbcommon-dev libconfig-dev libjson-c-dev | ||
- name: Install wayland-server | ||
run: | | ||
git clone --branch 1.23 https://gitlab.freedesktop.org/wayland/wayland.git | ||
cd wayland | ||
meson setup build -Ddocumentation=false | ||
sudo ninja -C build install | ||
cd .. | ||
- name: Install libdrm | ||
run: | | ||
git clone --branch libdrm-2.4.123 https://gitlab.freedesktop.org/mesa/drm.git | ||
cd drm | ||
meson setup build | ||
sudo ninja -C build install | ||
cd .. | ||
- name: Install pixman | ||
run: | | ||
git clone --branch pixman-0.42.2 https://gitlab.freedesktop.org/pixman/pixman | ||
cd pixman | ||
meson setup build | ||
sudo ninja -C build install | ||
cd .. | ||
- name: Install wayland-protocols | ||
run: | | ||
git clone --branch 1.35 https://gitlab.freedesktop.org/wayland/wayland-protocols.git | ||
cd wayland-protocols | ||
meson setup build | ||
sudo ninja -C build install | ||
cd .. | ||
- name: Install wlroots | ||
run: | | ||
git clone --branch 0.18 https://gitlab.freedesktop.org/wlroots/wlroots | ||
cd wlroots | ||
meson setup build/ | ||
ninja -C build/ | ||
sudo ninja -C build/ install | ||
cd .. | ||
- name: Configure the project with Meson | ||
run: meson setup build | ||
|
||
- name: Build the project | ||
run: meson compile -C build |