-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (34 loc) · 884 Bytes
/
ci.yaml
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
name: ci
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os:
- ubuntu
- macos
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: symlink gfortran (macOS)
if: runner.os == 'macOS'
run: |
ln -s /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
gfortran --version
- name: install Eigen (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get install -y libeigen3-dev
- name: install Eigen (macOS)
if: runner.os == 'macOS'
run: brew install eigen
- run: rustup update stable && rustup default stable
- run: cargo build --verbose
- run: cargo test --verbose