Updated topdir CMakeLists.txt to handle iPOPO versions #96
Workflow file for this run
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: "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 | |
- 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 |