Add CITest build by cmake

This commit is contained in:
kabeor 2022-01-18 12:05:57 +08:00
parent 7129ae29b6
commit 9e11ae9c62
1 changed files with 27 additions and 4 deletions

View File

@ -30,33 +30,45 @@ jobs:
matrix:
config:
- {
name: 'ubuntu-18.04 x64 cmake',
name: 'ubuntu-18.04 x64 python2.7 make',
os: ubuntu-18.04,
arch: x64,
python-arch: x64,
python-version: '2.7',
build-system: 'make',
}
- {
name: 'ubuntu-18.04 x64 cmake',
name: 'ubuntu-18.04 x64 python3.6 make',
os: ubuntu-18.04,
arch: x64,
python-arch: x64,
python-version: '3.6',
build-system: 'make',
}
- {
name: 'ubuntu-20.04 x64 cmake',
name: 'ubuntu-20.04 x64 python2.7 make',
os: ubuntu-20.04,
arch: x64,
python-arch: x64,
python-version: '2.7',
build-system: 'make',
}
- {
name: 'ubuntu-20.04 x64 cmake',
name: 'ubuntu-20.04 x64 python3.9 make',
os: ubuntu-20.04,
arch: x64,
python-arch: x64,
python-version: '3.9',
build-system: 'make',
}
- {
name: 'ubuntu-20.04 x64 python3.9 cmake',
os: ubuntu-20.04,
arch: x64,
python-arch: x64,
python-version: '3.9',
build-system: 'cmake',
}
steps:
- uses: actions/checkout@v2
@ -76,12 +88,23 @@ jobs:
chmod +x suite/cstest/build_cstest.sh
- name: make
if: startsWith(matrix.config.build-system, 'make')
shell: 'script -q -e -c "bash {0}"'
run: |
./make.sh
make check
sudo make install
- name: cmake
if: startsWith(matrix.config.build-system, 'cmake')
shell: 'script -q -e -c "bash {0}"'
run: |
mkdir build
cd build
cmake ..
cmake --build . --config Release
sudo make install
- name: build python binding
shell: 'script -q -e -c "bash {0}"'
run: |