notcurses/.github/workflows/windows_test.yml

88 lines
2.1 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-11-21 00:53:18 +00:00
mingw-w64-ucrt-x86_64-openimageio
mingw-w64-ucrt-x86_64-libdeflate
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
2021-10-09 10:53:08 +00:00
- name: config
2021-07-25 01:34:20 +00:00
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 \
2021-11-21 00:53:18 +00:00
-DUSE_MULTIMEDIA=oiio \
2021-07-25 01:34:20 +00:00
-DUSE_PANDOC=off \
-DUSE_QRCODEGEN=on
2021-10-09 10:53:08 +00:00
- name: build
2021-07-25 01:34:20 +00:00
run: |
cd build
2021-10-09 06:12:28 +00:00
ninja
2021-07-25 01:34:20 +00:00
# this is not going to work until we have a ConPTY CI environment
# - name: test
#run: |
#cd build
#ctest --output-on-failure
2021-07-25 01:34:20 +00:00
# - name: install
#run: |
#cd build
#ninja install
2021-07-25 01:34:20 +00:00
#- 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