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

WIP QCOR Linux GitHub Actions CI

Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <>
parent 6f868357
name: QCOR Ubuntu Linux Build and Test
- 'master'
# Ignore changes in these folders (not related to the build)
- 'benchmarks/**'
- 'docker/**'
- 'docs/**'
- 'python/examples/**'
- 'scripts/**'
- 'benchmarks/**'
- 'docker/**'
- 'docs/**'
- 'python/examples/**'
- 'scripts/**'
# Cancel any in-progress job or run
group: ${{ github.head_ref }}
cancel-in-progress: true
name: Linux CI
runs-on: ubuntu-latest
- name: Install dependencies
run: sudo apt-get -y update && sudo apt-get install -y --no-install-recommends ninja-build libssl-dev libcurl4-openssl-dev python3 libpython3-dev python3-pip libblas-dev liblapack-dev wget gnupg lsb-release
- name: Install llvm-csp
run: wget -qO- | sudo apt-key add - \
wget -qO- "$(lsb_release -cs)/aide-qc.list" | sudo tee -a /etc/apt/sources.list.d/aide-qc.list \
sudo apt-get update \
sudo apt-get install aideqc-llvm
# Manually build+install XACC so that we can pick up the latest version.
- name: Build and install xacc
run: git clone --recursive && cd xacc && mkdir build && cd build && cmake .. -G Ninja && cmake --build . --target install && cd ../.. && rm -rf xacc
- name: Checkout qcor code
uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure
working-directory: build/
run: cmake -G Ninja $GITHUB_WORKSPACE -DXACC_DIR=~/.xacc -DLLVM_ROOT=/usr/local/aideqc/llvm -DMLIR_DIR=/usr/local/aideqc/llvm/lib/cmake/mlir -DQCOR_BUILD_TESTS=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
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