update library version; add xmake tests #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: "**/cpm_modules" | |
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | |
- name: Setup Miniconda | |
# You may pin to the exact commit or the version. | |
# uses: conda-incubator/setup-miniconda@35d1405e78aa3f784fe3ce9a2eb378d5eeb62169 | |
uses: conda-incubator/[email protected] | |
with: | |
auto-update-conda: ture | |
- name: Install dependent software | |
run: | | |
conda info | |
conda install -c conda-forge cmake boost=1.74 | |
- name: configure | |
run: cmake -S. -Bbuild | |
- name: build | |
run: cmake --build build --config Debug -j4 | |
- name: test | |
run: | | |
cd build/test | |
ctest --build-config Debug |