hikyuu2/.github/workflows/windows.yml
2021-04-03 18:37:09 +08:00

39 lines
1.2 KiB
YAML

name: win-build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-lastest]
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 ./hikyuu
# Copy-Item ./boost_1_75_0 ./hikyuu
- name: build_boost
shell: cmd
run: |
cd hikyuu/boost_1_75_0
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: |
set BOOST_ROOT=D:\a\hikyuu\hikyuu\hikyuu\boost_1_75_0
set BOOST_LIB=D:\a\hikyuu\hikyuu\hikyuu\boost_1_75_0/stage/lib
xmake f --confirm=y --test=small
xmake -b small-test
xmake r small-test