-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 955 Bytes
/
build-and-test.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
name: Build and test
# Trigger the workflow on push or pull request events
on:
push:
branches:
- main
- testing
pull_request:
branches:
- main
- testing
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgdal-dev libproj22 libproj-dev netcdf-bin libnetcdff-dev
- name: Build configure script
run: autoreconf -fi
- name: Run configure script
run: ./configure
- name: Build kestrel
run: make
- name: Run tests
run: make check
- name: Save logs
if: ${{ always() }} # run regardless of whether build/test succeeded
uses: actions/upload-artifact@v4
with:
name: test-logs
path: tests/*.log
retention-days: 30