Skip to content

Commit

Permalink
Merge pull request #575 from SuperDARN/ci_compilation_test
Browse files Browse the repository at this point in the history
Added CI compilation test
  • Loading branch information
aburrell authored May 28, 2024
2 parents bc87693 + 8d40d74 commit cd1e8ed
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will install RST and eventually run tests

name: Compilation Test

on: [push, pull_request]

jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
cc: ["gcc-default"]
cdf: ["39_0"]

name: ${{ matrix.cc }} on ${{ matrix.os }} with CDF ${{ matrix.cdf }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install Ubuntu dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
cat build/.requirements.ubuntu | xargs sudo apt-get install
echo "Get and install NASA CDF"
sudo apt-get install wget
wget https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/latest/linux/cdf${{ matrix.cdf }}-dist-cdf.tar.gz
tar -xzvf cdf${{ matrix.cdf }}-dist-cdf.tar.gz
cd cdf${{ matrix.cdf }}-dist
make OS=linux ENV=gnu all
make test
sudo make INSTALLDIR=/usr/local/cdf install
- name: Build and make code
run: |
export RSTPATH=$(pwd)
source .profile.bash
build/script/make.build
build/script/make.code
- name: Build and make docs
run: |
export RSTPATH=$(pwd)
source .profile.bash
build/script/make.doc
14 changes: 14 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Read the Docs configuration file for MkDocs projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

mkdocs:
configuration: mkdocs.yml
7 changes: 6 additions & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
"affiliation": "Lancaster University",
"name": "Walach, M.-T.",
"orcid": "0000-0002-9352-0659"
}
},
{
"orcid": "0000-0001-8875-9326",
"affiliation": "Naval Research Laboratory",
"name": "Angeline G. Burrell"
}
]
}
2 changes: 1 addition & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The RST is now maintained collaboratively by the SuperDARN Data Analysis Working

- D.D. Billett, documentation, testing, enhancements
- E.C. Bland, DAWG Co-Chair (2019-2022), fit_speck_removal, documentation, testing
- A.G. Burrell, documentation, bugfixes, testing
- A.G. Burrell, documentation, bugfixes, testing, enhancements
- I. Coco, testing
- E.D.P. Cousins, CS10 and PSR10 convection models
- A. Grocott, DAWG Co-Chair (2022-), testing
Expand Down
8 changes: 8 additions & 0 deletions build/.requirements.ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build-essential
libhdf5-serial-dev
libncurses-dev
libnetcdf-dev
libpng-dev
libx11-dev
libxext-dev
netpbm

0 comments on commit cd1e8ed

Please sign in to comment.