-
Notifications
You must be signed in to change notification settings - Fork 15
59 lines (50 loc) · 1.17 KB
/
main.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
55
56
57
58
59
name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
env:
FC: gfortran-9
CC: gcc-9
CXX: g++-9
steps:
- name: install-dependencies
run: |
sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev
- name: checkout-jasper
uses: actions/checkout@v2
with:
repository: mdadams/jasper
path: jasper
ref: version-2.0.16
- name: cache-jasper
id: cache-jasper
uses: actions/cache@v2
with:
path: ~/Jasper
key: jasper-${{ runner.os }}-${{ hashFiles('jasper/VERSION') }}
- name: build-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
run: |
cd jasper
mkdir cmake_build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/Jasper
make -j2
make install
- name: checkout
uses: actions/checkout@v2
with:
path: g2
submodules: true
- name: build
run: |
cd g2
mkdir build
cd build
cmake .. -DJasper_ROOT=~/Jasper
make -j2
- name: test
run: |
cd $GITHUB_WORKSPACE/g2/build
make test