1--- 2name: macOS 3 4on: 5 pull_request: 6 push: 7 branches: 8 - master 9 10jobs: 11 tests: 12 env: 13 COLORTERM: truecolor 14 NPROC: 2 15 TERM: xterm 16 name: build, test, & install 17 runs-on: macos-latest 18 19 steps: 20 21 - name: Install tools and libraries via Homebrew 22 run: | 23 brew install \ 24 coreutils \ 25 doctest \ 26 ffmpeg \ 27 libdeflate \ 28 libunistring \ 29 ncurses 30 31 - uses: actions/checkout@v2 32 33 - name: cmake 34 run: | 35 mkdir build && cd build 36 cmake .. \ 37 -DCMAKE_BUILD_TYPE=Release \ 38 -DUSE_PANDOC=off 39 40 - name: make 41 run: | 42 cd build 43 make -j${NPROC} 44 45 - name: ctest 46 run: | 47 cd build 48 make test 49 #ctest --output-on-failure 50 51 - name: make install 52 run: | 53 cd build 54 sudo make install 55 56 - name: python wrappers (old) 57 run: | 58 python3 -m pip install --upgrade pip 59 pip install cffi pypandoc 60 cd cffi 61 python3 setup.py sdist build 62 #sudo python3 setup.py install 63 #notcurses-pydemo > /dev/null 64 #ncdirect-pydemo > /dev/null 65 66 - name: python wrappers (new) 67 run: | 68 cd python 69 python3 setup.py build 70 #sudo python3 setup.py install 71 #python3 examples/000-print-version.py 72