-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (36 loc) · 1.61 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "Linux CI"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Daily run
- cron: '30 1 * * *'
jobs:
build:
strategy:
matrix:
build_type: [Debug, Release]
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 gfortran libopenmpi-dev ninja-build libssl-dev libcurl4-openssl-dev python3 libpython3-dev python3-pip libblas-dev liblapack-dev
- name: Build XACC
run: cd $HOME && git clone --recursive https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build && cmake .. -GNinja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} && cmake --build . --target install
- name: Build ExaTN
run: cd $HOME && git clone --recursive https://github.com/ornl-qci/exatn && cd exatn && mkdir build && cd build && cmake .. -DBLAS_LIB=ATLAS -DBLAS_PATH=/usr/lib/x86_64-linux-gnu -DCMAKE_BUILD_TYPE=${{matrix.build_type}} && make -j$(nproc) install
- name: Configure
working-directory: build/
run: cmake $GITHUB_WORKSPACE -DXACC_DIR=$HOME/.xacc -DTNQVM_BUILD_TESTS=TRUE -DEXATN_DIR=$HOME/.exatn -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: Build
working-directory: build/
run: cmake --build . --target install
- name: Test
working-directory: build/
run: ctest --output-on-failure