hikyuu2/.github/workflows/ubuntu.yml
2021-04-03 18:54:39 +08:00

37 lines
1.0 KiB
YAML

name: ubuntu-build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: xmake-io/github-action-setup-xmake@v1
- name: checkout
run: |
git clone https://github.com/fasiondog/hikyuu.git --recursive --depth 1
- name: build_boost
run: |
cd ./hikyuu
wget https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2
tar -jxf boost_1_75_0.tar.bz2
cd boost_1_75_0
ls
./bootstrap.sh --with-python=python3
./b2 release link=shared address-model=64 -j 4 --with-python --with-serialization;
./b2 release link=static address-model=64 cxxflags=-fPIC -j 4 --with-date_time --with-filesystem --with-system --with-test;
- name: test
shell: cmd
run: |
set BOOST_ROOT=./boost_1_75_0
set BOOST_LIB=./boost_1_75_0/stage/lib
xmake f --confirm=y --test=small
xmake -b small-test
xmake r small-test