-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 993 Bytes
/
test.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
name: Test libquil-sys
on:
pull_request:
push:
branches:
- 'main'
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install libquil dependencies
run: sudo apt install -y libffi\* libblas\* liblapack\*
- name: Install libquil
run: |
curl https://raw.githubusercontent.com/rigetti/libquil/main/install.sh | bash -s 0.2.0
- name: Run tests
run: |
cd $GITHUB_WORKSPACE/lib
cargo test
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install libquil dependencies
run: brew install lapack openblas
- name: Install libquil
run: 'curl https://raw.githubusercontent.com/rigetti/libquil/main/install.sh | bash -s 0.2.0'
- name: Run tests
run: |
cd $GITHUB_WORKSPACE/lib
cargo test