-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (50 loc) · 1.27 KB
/
examples.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
46
47
48
49
50
51
52
53
54
name: Examples
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure
run: |
sudo apt update
sudo apt install libglfw3-dev
sudo apt install povray
sudo apt install libfreetype6-dev
sudo apt install fonts-freefont-ttf
sudo apt install libsuitesparse-dev
sudo apt install liblapacke-dev
sudo apt install libunistring-dev
python -m pip install --upgrade pip
python -m pip install regex colored
- name: make
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
sudo make install
sudo mkdir /usr/local/lib/morpho
- name: getcli
run: |
git clone https://github.com/Morpho-lang/morpho-cli.git
cd morpho-cli
mkdir build
cd build
cmake ..
sudo make install
- name: morphoview
run: |
git clone https://github.com/morpho-lang/morpho-morphoview.git
cd morpho-morphoview
mkdir build
cd build
cmake ..
sudo make install
- name: test
run: |
cd examples
python3 examples.py -c