Merge pull request #26 from wmww/update-readme-deps #49
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
name: 'Build library and run tests' | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Apt update | |
run: sudo apt update | |
- name: Install depends | |
run: sudo apt install meson libwayland-dev libgtk-4-dev gobject-introspection libgirepository1.0-dev valac luajit luarocks gtk-doc-tools | |
- name: Meson | |
run: meson setup -Dexamples=true -Ddocs=true -Dtests=true build | |
env: | |
CFLAGS: -Werror | |
- name: Build | |
run: ninja -C build | |
- name: Install Lua LGI | |
run: sudo luarocks install https://raw.githubusercontent.com/lgi-devs/lgi/master/lgi-scm-1.rockspec | |
# From https://github.com/lgi-devs/lgi/pull/305#issue-1459493105 | |
- name: Test | |
run: ninja -C build test | |
- name: Install | |
run: sudo ninja -C build install |