-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (41 loc) · 1.08 KB
/
ci.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
name: Build and test symengine.f90
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Setup gfortran on MacOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
sudo ln -s /usr/local/bin/gfortran-9 /usr/local/bin/gfortran
sudo mkdir /usr/local/gfortran
sudo ln -s /usr/local/Cellar/gcc@9/9.3.0_1/lib/gcc/9 /usr/local/gfortran/lib
- name: Checkout symengine.f90
uses: actions/checkout@v3
with:
repository: symengine/symengine.f90
path: symengine.f90
- name: Checkout symengine repo
uses: actions/checkout@v3
with:
repository: symengine/symengine
path: symengine-cpp
- name: Build symengine
run: |
cd symengine-cpp
mkdir build
cd build
cmake ..
make -j2
sudo make install
- name: Build and test symengine.f90
run: |
cd symengine.f90
mkdir build
cd build
cmake ..
make -j2
ctest