2021-06-14 17:44:43 +00:00
|
|
|
---
|
2021-07-14 16:55:17 +00:00
|
|
|
name: Ubuntu
|
2021-06-14 17:44:43 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
env:
|
|
|
|
COLORTERM: truecolor
|
2021-07-14 16:55:17 +00:00
|
|
|
NPROC: 2
|
2021-06-14 17:44:43 +00:00
|
|
|
TERM: xterm
|
2021-07-14 16:55:17 +00:00
|
|
|
name: 🐧 build, test, & install
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2021-06-14 17:44:43 +00:00
|
|
|
steps:
|
2021-07-14 16:55:17 +00:00
|
|
|
|
2021-06-14 17:44:43 +00:00
|
|
|
- name: Install tools and libraries via APT
|
|
|
|
run: |
|
2021-06-24 07:17:28 +00:00
|
|
|
sudo apt update
|
2021-06-14 17:44:43 +00:00
|
|
|
sudo apt install -y \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
doctest-dev \
|
|
|
|
ffmpeg \
|
|
|
|
libavcodec-dev \
|
|
|
|
libavformat-dev \
|
|
|
|
libavutil-dev \
|
|
|
|
libncurses-dev \
|
|
|
|
libqrcodegen-dev \
|
|
|
|
libswscale-dev \
|
|
|
|
libunistring-dev \
|
|
|
|
pandoc \
|
|
|
|
pkg-config \
|
|
|
|
python3-cffi \
|
|
|
|
python3-dev \
|
|
|
|
python3-setuptools
|
|
|
|
|
2021-07-14 16:55:17 +00:00
|
|
|
- uses: actions/checkout@v2
|
2021-06-14 17:44:43 +00:00
|
|
|
|
|
|
|
- name: cmake
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DUSE_QRCODEGEN=on
|
|
|
|
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
cd build
|
2021-07-14 16:55:17 +00:00
|
|
|
make -j${NPROC}
|
2021-06-14 17:44:43 +00:00
|
|
|
|
|
|
|
- name: ctest
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
ctest --output-on-failure
|
|
|
|
|
|
|
|
- name: make install
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
sudo make install
|
|
|
|
sudo ldconfig
|
|
|
|
|
2021-07-14 16:55:17 +00:00
|
|
|
- name: python wrappers (old)
|
2021-06-14 17:44:43 +00:00
|
|
|
run: |
|
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
pip install pypandoc
|
|
|
|
cd cffi
|
|
|
|
python3 setup.py sdist build
|
|
|
|
sudo python3 setup.py install
|
|
|
|
notcurses-pydemo > /dev/null
|
|
|
|
ncdirect-pydemo > /dev/null
|
|
|
|
|
2021-07-14 16:55:17 +00:00
|
|
|
- name: python wrappers (new)
|
|
|
|
run: |
|
|
|
|
cd python
|
|
|
|
python3 setup.py build
|
|
|
|
sudo python3 setup.py install
|
|
|
|
python3 examples/000-print-version.py
|