forked from eclipse/xacc
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 1.25 KB
/
ci-linux-mpi.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
name: "Linux CI with MPI"
on:
push:
branches: [ master, xacc-devel ]
pull_request:
branches: [ master ]
schedule:
# once every weekend
- cron: '0 3 * * 6'
jobs:
build:
runs-on: ubuntu-latest
name: "Linux 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: 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 libcurl4-openssl-dev python3 libpython3-dev python3-pip libblas-dev liblapack-dev libopenmpi-dev
- name: Configure
working-directory: build/
run: cmake -GNinja $GITHUB_WORKSPACE -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE -DXACC_ENABLE_MPI=TRUE
- name: Build
working-directory: build/
run: cmake --build . --target install
- name: Test
working-directory: build/quantum/plugins/decorators/hpc-virtualization/tests
run: ctest -V