mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-04 21:07:57 +08:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
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: checkout
|
|
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.75.0/source/boost_1_75_0.zip" -UseBasicParsing -OutFile ./boost_1_75_0.zip
|
|
Expand-Archive ./boost_1_75_0.zip -DestinationPath .
|
|
Copy-Item ./boost_1_75_0 ./hikyuu
|
|
- name: build_boost
|
|
shell: cmd
|
|
run: |
|
|
dir
|
|
cd hikyuu/boost_1_75_0
|
|
dir
|
|
bootstrap.bat --with-python=python3
|
|
b2 release link=static runtime-link=shared address-model=64 -j 4 --with-date_time --with-filesystem --with-system --with-test
|
|
b2 release link=shared runtime-link=shared address-model=64 -j 4 --with-python --with-serialization
|
|
|
|
- name: test
|
|
shell: cmd
|
|
run: |
|
|
cd hikyuu
|
|
set BOOST_ROOT=./boost_1_75_0
|
|
set BOOST_LIB=./boost_1_75_0/stage/lib
|
|
xmake f --confirm=y --test=small
|
|
xmake -bvD small-test
|
|
xmake r small-test
|