Skip to content

CI jobs

CI jobs #21

Workflow file for this run

name: ubuntu
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Packages
run: |
echo ${{ github.server_url }}
sudo apt-get -y install ninja-build libglib2.0-dev \
libwayland-dev wayland-protocols libxkbcommon-dev \
mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev mesa-utils
cmake --version
gcc --version
- name: Configure CMake
run: |
cmake -G Ninja -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DENABLE_AGL_SHELL_CLIENT=ON
- name: Build
run: ninja -C ${{github.workspace}}/build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}