32 lines
876 B
YAML
32 lines
876 B
YAML
name: Build and Unit Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master", "ci-test" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: checkout aml
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: any1/aml
|
|
path: subprojects/aml
|
|
- name: checkout neatvnc
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: any1/neatvnc
|
|
path: subprojects/neatvnc
|
|
- name: prepare environment
|
|
run: sudo apt install -y meson libdrm-dev libxkbcommon-dev libwlroots-dev libjansson-dev libpam0g-dev libgnutls28-dev libavfilter-dev libavcodec-dev libavutil-dev libturbojpeg0-dev scdoc
|
|
- name: configure
|
|
run: meson build -D tests=true
|
|
- name: compile
|
|
run: meson compile -C build
|
|
- name: unit tests
|
|
run: meson test --verbose -C build
|