quest-sys 0.18.1

Bindings to the QuEST quantum computer simulator C library
Documentation
name: LLVM asan

on:
  push:
    branches:
      - master
      - develop
  pull_request:
    branches:
      - master
      - develop

jobs:

  build-and-test:
    name: Unit tests with LLVM address sanitizer on Ubuntu 20.04
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: make build directory
        run: mkdir build_dir

      - name: cmake configure
        run: cmake .. -DTESTING:BOOL=ON -DPRECISION:STRING=2 -DQUEST_MEMCHECK:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug
        working-directory: build_dir
        env:
          CC: clang
          CXX: clang++

      - name: cmake build
        run: cmake --build . --parallel 2 --target tests
        working-directory: build_dir

      - name: cmake test
        run: ctest -j2 --output-on-failure --timeout 5000
        working-directory: build_dir