2021-06-14 18:17:34 +00:00
|
|
|
---
|
2021-07-14 16:55:17 +00:00
|
|
|
name: macOS
|
2021-06-14 18:17:34 +00:00
|
|
|
|
|
|
|
on:
|
2021-07-14 16:55:17 +00:00
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-06-14 18:17:34 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
env:
|
|
|
|
COLORTERM: truecolor
|
|
|
|
NPROC: 2
|
|
|
|
TERM: xterm
|
2021-07-14 16:55:17 +00:00
|
|
|
name: 🍎 build, test, & install
|
2021-06-14 18:17:34 +00:00
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Install tools and libraries via Homebrew
|
|
|
|
run: |
|
|
|
|
brew install \
|
|
|
|
coreutils \
|
|
|
|
doctest \
|
|
|
|
ffmpeg \
|
|
|
|
libunistring \
|
2021-09-28 08:27:56 +00:00
|
|
|
ncurses
|
2021-06-14 18:17:34 +00:00
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-07-14 16:55:17 +00:00
|
|
|
- name: cmake
|
|
|
|
run: |
|
2021-06-14 18:17:34 +00:00
|
|
|
mkdir build && cd build
|
|
|
|
cmake .. \
|
2021-09-18 00:49:01 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DUSE_PANDOC=off
|
2021-06-14 18:17:34 +00:00
|
|
|
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
make -j${NPROC}
|
|
|
|
|
|
|
|
- name: ctest
|
|
|
|
run: |
|
|
|
|
cd build
|
2021-09-18 00:49:01 +00:00
|
|
|
make test
|
|
|
|
#ctest --output-on-failure
|
2021-06-14 18:17:34 +00:00
|
|
|
|
|
|
|
- name: make install
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
sudo make install
|
|
|
|
|
2021-07-14 16:55:17 +00:00
|
|
|
- name: python wrappers (old)
|
2021-06-14 18:17:34 +00:00
|
|
|
run: |
|
|
|
|
python3 -m pip install --upgrade pip
|
2021-07-14 16:55:17 +00:00
|
|
|
pip install cffi pypandoc
|
2021-06-14 18:17:34 +00:00
|
|
|
cd cffi
|
|
|
|
python3 setup.py sdist build
|
2021-08-17 23:38:07 +00:00
|
|
|
#sudo python3 setup.py install
|
|
|
|
#notcurses-pydemo > /dev/null
|
|
|
|
#ncdirect-pydemo > /dev/null
|
2021-06-14 18:17:34 +00:00
|
|
|
|
2021-08-17 22:57:06 +00:00
|
|
|
- name: python wrappers (new)
|
|
|
|
run: |
|
|
|
|
cd python
|
|
|
|
python3 setup.py build
|
2021-08-17 23:38:07 +00:00
|
|
|
#sudo python3 setup.py install
|
|
|
|
#python3 examples/000-print-version.py
|