Auto pre-commit update (#27) #117
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: "OS Builds" | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
jobs: | |
os-build: | |
runs-on: ${{ matrix.os-version }} | |
strategy: | |
matrix: | |
os-version: [ubuntu-22.04, windows-2022, macos-12] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Python Requirements | |
run: python3 -m pip install cython wheel pytest build | |
- name: Configure | |
run: cmake -DCMAKE_BUILD_TYPE=Release -DKALEIDOSCOPE_ENABLE_TESTS=ON -DKALEIDOSCOPE_ENABLE_PACKAGE=ON -S . -B build | |
- name: Build | |
run: cmake --build build --parallel --config Release | |
- name: Install python package | |
run: python3 -m pip install --find-links=./build/python/dist/ LibKaleidoscope | |
- name: Run Tests | |
run: | | |
ctest --output-on-failure --test-dir build/tests --build-config Release | |
pytest python/python-tests.py | |
- name: Package | |
run: cmake --build build --parallel --target package --config Release | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: build/dist/* |