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
|
2023-01-12 19:33:50 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y meson libdrm-dev libxkbcommon-dev libwlroots-dev libjansson-dev libpam0g-dev libgnutls28-dev libavfilter-dev libavcodec-dev libavutil-dev libturbojpeg0-dev scdoc
|
2023-01-28 03:59:50 +00:00
|
|
|
# runtime deps for integration testing:
|
|
|
|
sudo apt-get install -y sway jq lsof
|
2023-02-26 02:48:33 +00:00
|
|
|
pip install vncdotool
|
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
|
2023-01-28 03:59:50 +00:00
|
|
|
- name: integration tests
|
|
|
|
run: ./test/integration/integration.sh
|