-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.27 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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: coursier/setup-action@v1
with:
jvm: adopt:8
- uses: coursier/cache-action@v6
- name: Update package lists
run: sudo apt-get update
- name: Install libhdf5-dev
run: sudo apt-get install libhdf5-dev
- name: Install libcurl-dev
run: sudo apt-get install libcurl4-openssl-dev
- name: Set NetCDF install location
run: echo "NETCDF_PATH=$HOME/netcdf" >> $GITHUB_ENV
- name: Cache NetCDF installation
id: cache-netcdf
uses: actions/cache@v3
with:
path: ${{ env.NETCDF_PATH }}
key: ${{ runner.os }}-netcdf-4.7.4
- name: Install NetCDF
if: steps.cache-netcdf.outputs.cache-hit != 'true'
run: |
cd $HOME
curl -OL https://github.com/Unidata/netcdf-c/archive/v4.7.4.tar.gz
tar -xf v4.7.4.tar.gz
cd netcdf-c-4.7.4
CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/x86_64-linux-gnu/hdf5/serial ./configure --prefix=$NETCDF_PATH
make install
- name: Run tests
run: sbt -v +test
env:
LD_LIBRARY_PATH: ${{ env.NETCDF_PATH }}/lib