Commit e0e16be3 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Implemented https://github.com/eclipse/xacc/issues/506



- Added yml files for MacOS and Linux CI

- Linked the status to README
Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent f72be235
Pipeline #180838 failed with stage
in 2 minutes and 46 seconds
name: "Linux CI"
on:
push:
branches: [ master, xacc-devel ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: "Linux CI"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Install dependencies
run: sudo apt-get -y update && sudo apt-get install -y --no-install-recommends ninja-build libssl-dev python3 libpython3-dev python3-pip libblas-dev liblapack-dev
- name: Configure
working-directory: build/
run: cmake -GNinja $GITHUB_WORKSPACE -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE
- name: Build
working-directory: build/
run: cmake --build . --target install
- name: Test
working-directory: build/
run: ctest --output-on-failure
\ No newline at end of file
name: "macOS CI"
on:
push:
branches: [ master, xacc-devel ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
name: "Mac CI"
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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
- 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
\ No newline at end of file
![XACC](docs/assets/xacc_full_logo.svg)
| master | xacc-devel |
|:-------|:-------|
|[![pipeline status](https://code.ornl.gov/qci/xacc/badges/master/pipeline.svg)](https://code.ornl.gov/qci/xacc/commits/master) | [![pipeline status](https://code.ornl.gov/qci/xacc/badges/xacc-devel/pipeline.svg)](https://code.ornl.gov/qci/xacc/commits/xacc-devel) |
[![Linux CI](https://github.com/eclipse/xacc/actions/workflows/ci-linux.yml/badge.svg?branch=xacc-devel)](https://github.com/eclipse/xacc/actions/workflows/ci-linux.yml)
[![Mac CI](https://github.com/eclipse/xacc/actions/workflows/ci-mac.yml/badge.svg?branch=xacc-devel)](https://github.com/eclipse/xacc/actions/workflows/ci-mac.yml)
## Language and Hardware Independent Quantum Programming Framework
XACC is an extensible compilation framework for hybrid quantum-classical computing architectures.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment