2023-01-02 16:27:22 +00:00
|
|
|
name: Build and Unit Test
|
2022-11-21 02:44:38 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-01-02 12:09:54 +00:00
|
|
|
branches: [ "master", "ci-test" ]
|
2022-11-21 02:44:38 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
2023-01-02 16:27:22 +00:00
|
|
|
check:
|
2022-11-21 02:44:38 +00:00
|
|
|
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
|
2023-01-02 16:27:22 +00:00
|
|
|
- name: prepare environment
|
2022-11-28 02:58:56 +00:00
|
|
|
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
|
2022-11-21 02:44:38 +00:00
|
|
|
- name: configure
|
2023-01-02 12:05:52 +00:00
|
|
|
run: meson build -D tests=true
|
2023-01-02 16:27:22 +00:00
|
|
|
- name: compile
|
2023-01-02 12:05:52 +00:00
|
|
|
run: meson compile -C build
|
|
|
|
- name: unit tests
|
2023-01-02 16:27:22 +00:00
|
|
|
run: meson test --verbose -C build
|