mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
35 lines
848 B
YAML
35 lines
848 B
YAML
name: win-build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-2019]
|
|
|
|
steps:
|
|
- uses: xmake-io/github-action-setup-xmake@v1
|
|
- name: clone
|
|
run: |
|
|
git clone https://github.com/fasiondog/hikyuu.git --recursive --depth 1
|
|
- name: download_boost
|
|
run: |
|
|
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
|
|
cd ./hikyuu
|
|
ls
|
|
- name: build
|
|
run: |
|
|
python --version
|
|
pip install click
|
|
cd hikyuu
|
|
python setup.py build
|
|
- name: test
|
|
run: |
|
|
cd hikyuu
|
|
python setup.py test
|