2021-04-03 18:54:39 +08:00
|
|
|
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
|
2021-05-03 02:01:47 +08:00
|
|
|
wget https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2
|
2021-04-03 18:54:39 +08:00
|
|
|
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;
|
2022-05-12 21:17:02 +08:00
|
|
|
./b2 release link=static address-model=64 cxxflags=-fPIC -j 4 --with-date_time --with-filesystem --with-system --with-test --with-atomic;
|
2021-04-03 18:54:39 +08:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
run: |
|
2022-02-10 22:06:53 +08:00
|
|
|
sudo apt-get install -y libhdf5-dev libsqlite3-dev
|
2021-04-03 20:27:43 +08:00
|
|
|
cd ./hikyuu
|
2021-04-03 22:16:42 +08:00
|
|
|
export BOOST_ROOT=./boost_1_75_0
|
|
|
|
export BOOST_LIB=./boost_1_75_0/stage/lib
|
2021-04-03 20:43:54 +08:00
|
|
|
xmake f -y
|
2021-04-03 18:54:39 +08:00
|
|
|
xmake -b small-test
|
|
|
|
xmake r small-test
|