Merge pull request #122 from AllenCellModeling/fix/publish-pypi #115
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
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: 0 18 * * 1 | |
name: C++ Main Build | |
jobs: | |
cmake-build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: "windows-latest msvc", | |
os: windows-latest, | |
cc: "cl", cxx: "cl", | |
} | |
- { | |
name: "ubuntu-latest gnu", | |
os: ubuntu-latest, | |
cc: "gcc", cxx: "g++", | |
} | |
- { | |
name: "ubuntu-latest clang", | |
os: ubuntu-latest, | |
cc: "clang", cxx: "clang++", | |
} | |
- { | |
name: "macos-latest clang", | |
os: macos-latest, | |
cc: "clang", cxx: "clang++" | |
} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: build and test | |
env: | |
CC: ${{ matrix.config.cc }} | |
CXX: ${{ matrix.config.cxx }} | |
RUN_TESTS: true | |
run: | | |
mkdir ./cmake-build-debug | |
cd cmake-build-debug | |
cmake ../ | |
cmake --build . --target test_libczi_c++_extension | |
shell: bash |