Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub action for compile-only integration tests #50

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/gcclassic-compile-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gcclassic-compile-tests

on: [pull_request, push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
gnu:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Debug]
env:
CXX: g++
CC: gcc
FC: gfortran

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y libnetcdf-dev netcdf-bin libnetcdff-dev

- name: Compile-only tests
run: |
git submodule update --init --recursive
cd test/integration/GCClassic
./integrationTest.sh -d $HOME/compile-tests -t compile
cat $HOME/compile-tests/logs/results.compile.log
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This file documents all notable changes to the GEOS-Chem Classic wrapper reposit
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased] - TBD
### Added
- GitHub action to perform compile-only integration tests

### Changed
- Now use short submodule names (i.e. without the full path) in `.gitmodules`

Expand Down
Loading