Build and test via github action #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
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 | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run tests | |
run: make check | |
log: | |
needs: [build, test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Save logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-logs | |
path: tests/*.log | |
retention-days: 30 |