Skip to content

Added some bindings for FermionOperator arithmetics #133

Added some bindings for FermionOperator arithmetics

Added some bindings for FermionOperator arithmetics #133

Workflow file for this run

name: "macOS CI"
on:
push:
branches: [ master, xacc-devel ]
pull_request:
branches: [ master ]
schedule:
# once every weekend
- cron: '0 3 * * 6'
jobs:
build:
runs-on: macos-latest
name: "Mac CI"
steps:
- name: Checkout code
uses: actions/checkout@v3
# Declares the repository safe and not under dubious ownership.
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Setup XCode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Create Build Environment
run: cmake -E make_directory build
- name: Install ninja
run: brew install ninja
- name: Install dependencies
run: brew install python3 openssl curl libomp
- name: Configure
working-directory: build/
run: export SDKROOT="`xcrun --show-sdk-path`" && cmake -GNinja $GITHUB_WORKSPACE -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE -DCMAKE_PREFIX_PATH=$(brew --prefix libomp)
- name: Build
working-directory: build/
run: export SDKROOT="`xcrun --show-sdk-path`" && cmake --build . --target install
- name: Test
working-directory: build/
run: export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$HOME/.xacc/lib && ctest --output-on-failure