update github action

This commit is contained in:
fasiondog 2023-07-29 00:12:38 +08:00
parent a407c82b0e
commit c520b0c12b
2 changed files with 2 additions and 31 deletions

View File

@ -15,23 +15,11 @@ jobs:
- name: checkout
run: |
git clone https://github.com/fasiondog/hikyuu.git --recursive --depth 1
- name: build_boost
run: |
cd ./hikyuu
wget https://boostorg.jfrog.io/artifactory/main/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 --with-atomic;
- name: test
- name: build
run: |
sudo apt-get install -y libsqlite3-dev
cd ./hikyuu
export BOOST_ROOT=./boost_1_75_0
export BOOST_LIB=./boost_1_75_0/stage/lib
xmake f -y
xmake -b small-test
xmake r small-test

View File

@ -21,26 +21,9 @@ jobs:
Expand-Archive ./boost_1_75_0.zip -DestinationPath ./hikyuu
# Copy-Item ./boost_1_75_0 ./hikyuu
- name: build_boost_b2
- name: build
shell: cmd
run: |
cd hikyuu/boost_1_75_0
bootstrap.bat --with-python=python3
- name: build_boost
shell: cmd
run: |
cd hikyuu/boost_1_75_0
dir
.\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
dir .\stage\lib
- 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
cd hikyuu
xmake f -y
xmake -b small-test