2019-10-03 00:40:06 +08:00
|
|
|
name: win-build
|
2019-09-22 15:54:36 +08:00
|
|
|
|
2019-10-03 00:40:06 +08:00
|
|
|
on: [push, pull_request]
|
2019-09-22 15:54:36 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2019-10-01 18:53:37 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-12-10 22:06:37 +08:00
|
|
|
os: [windows-2019]
|
2019-09-22 15:54:36 +08:00
|
|
|
|
|
|
|
steps:
|
2019-10-01 18:53:37 +08:00
|
|
|
- uses: xmake-io/github-action-setup-xmake@v1
|
2020-08-30 17:29:05 +08:00
|
|
|
- name: prepare
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/fasiondog/hikyuu.git --recursive --depth 1
|
|
|
|
Invoke-WebRequest "https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.zip" -UseBasicParsing -OutFile ./boost_1_74_0.zip
|
|
|
|
Expand-Archive ./boost_1_74_0.zip -DestinationPath .
|
|
|
|
Copy-Item ./boost_1_74_0 ./hikyuu
|
2020-09-15 22:21:08 +08:00
|
|
|
cd ./hikyuu
|
2019-10-03 00:40:06 +08:00
|
|
|
- name: build
|
2019-09-29 00:06:21 +08:00
|
|
|
run: |
|
2019-12-10 22:20:37 +08:00
|
|
|
python --version
|
2019-10-03 00:47:00 +08:00
|
|
|
pip install click
|
2019-10-03 00:40:06 +08:00
|
|
|
python setup.py build
|
|
|
|
- name: test
|
2019-09-28 01:46:53 +08:00
|
|
|
run: |
|
2019-09-28 02:06:27 +08:00
|
|
|
cd hikyuu
|
2019-10-03 00:40:06 +08:00
|
|
|
python setup.py test
|