cmake linting and formatting #19
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: Build the unit tests (standard OpenQASM2) | |
run: | | |
cmake -B build_qasm -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build build_qasm --target unit_tests --parallel 4 | |
- name: Build the unit tests (Qiskit) | |
run: | | |
cmake -B build_qiskit -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
cmake --build build_qiskit --target unit_tests --parallel 4 | |
- name: Run the unit tests (standard OpenQASM2) | |
run: | | |
ctest --test-dir build_qasm | |
- name: Run the unit tests (Qiskit) | |
run: | | |
ctest --test-dir build_qiskit |