Fix pystaq (#62) #70
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: GitHub actions | |
on: | |
push: | |
branches: [ "**" ] | |
pull_request: | |
branches: [ "**" ] | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure staq | |
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build staq | |
run: cmake --build build | |
- name: Install staq | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
cmake --build build --target install | |
else | |
sudo cmake --build build --target install | |
fi | |
- name: Build unit tests | |
run: cmake --build build --target unit_tests --parallel 4 | |
- name: Run unit tests | |
run: ctest --test-dir build | |
- name: Install pystaq | |
run: pip3 install --user . |