notcurses/.github/workflows/windows_test.yml

85 lines
2.0 KiB
YAML
Raw Normal View History

2021-07-25 01:34:20 +00:00
---
name: Windows
on:
pull_request:
push:
branches:
- master
jobs:
tests:
defaults:
run:
shell: msys2 {0}
env:
COLORTERM: truecolor
TERM: xterm
name: 🏁 build, test, & install
runs-on: windows-latest
steps:
- name: Install tools and libraries via MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >
base-devel
git
mingw-w64-ucrt-x86_64-cmake
2021-07-31 10:35:01 +00:00
mingw-w64-ucrt-x86_64-doctest
2021-10-09 05:01:35 +00:00
mingw-w64-ucrt-x86_64-ffmpeg
2021-07-25 01:34:20 +00:00
mingw-w64-ucrt-x86_64-libunistring
mingw-w64-ucrt-x86_64-ncurses
2021-07-25 01:34:20 +00:00
mingw-w64-ucrt-x86_64-toolchain
2021-10-09 05:01:35 +00:00
mingw-w64-ucrt-x86_64-ninja
2021-07-25 01:34:20 +00:00
- uses: actions/checkout@v2
- name: Build libqrcodegen
run: |
mkdir "${HOME}/repos" && cd "${HOME}/repos"
git clone https://github.com/nayuki/QR-Code-generator.git
cd QR-Code-generator/c
make
cd /ucrt64/include && \
ln -s "${HOME}/repos/QR-Code-generator/c" ./qrcodegen
cd /ucrt64/lib && \
ln -s "${HOME}/repos/QR-Code-generator/c/libqrcodegen.a" ./libqrcodegen.a
- name: cmake
run: |
mkdir build && cd build
cmake .. \
2021-10-09 05:01:35 +00:00
-GNinja \
2021-07-25 01:34:20 +00:00
-DCMAKE_BUILD_TYPE=Release \
-DUSE_PANDOC=off \
-DUSE_QRCODEGEN=on
- name: make
run: |
cd build
2021-10-09 06:12:28 +00:00
ninja
2021-07-25 01:34:20 +00:00
- name: ctest
run: |
cd build
#ctest --output-on-failure
2021-07-25 01:34:20 +00:00
- name: make install
run: |
cd build
make install
#- name: python wrappers
#run: |
#python3 -m pip install --upgrade pip
#pip install pypandoc
#cd cffi
#python3 setup.py sdist build
#python3 setup.py install
#notcurses-pydemo > /dev/null
#ncdirect-pydemo > /dev/null