hikyuu2/.github/workflows/windows.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

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:
2021-04-03 18:37:09 +08:00
os: [windows-lastest]
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
2021-04-03 16:37:07 +08:00
- name: checkout
2020-09-15 23:03:04 +08:00
run: |
git clone https://github.com/fasiondog/hikyuu.git --recursive --depth 1
- name: download_boost
2020-08-30 17:29:05 +08:00
run: |
2021-04-03 17:41:43 +08:00
Invoke-WebRequest "https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.zip" -UseBasicParsing -OutFile ./boost_1_75_0.zip
2021-04-03 17:57:17 +08:00
Expand-Archive ./boost_1_75_0.zip -DestinationPath ./hikyuu
# Copy-Item ./boost_1_75_0 ./hikyuu
2021-04-03 17:41:43 +08:00
- name: build_boost
2021-04-03 16:50:53 +08:00
shell: cmd
2019-09-29 00:06:21 +08:00
run: |
2021-04-03 17:41:43 +08:00
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
2019-10-03 00:40:06 +08:00
- name: test
2021-04-03 16:50:53 +08:00
shell: cmd
2019-09-28 01:46:53 +08:00
run: |
2021-04-03 18:37:09 +08:00
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
2021-04-03 17:41:43 +08:00
xmake f --confirm=y --test=small
2021-04-03 18:37:09 +08:00
xmake -b small-test
2021-04-03 17:41:43 +08:00
xmake r small-test