Skip to content

Commit

Permalink
MacOS GitHub Actions Testing
Browse files Browse the repository at this point in the history
testing...
  • Loading branch information
marshallward committed Jan 4, 2024
1 parent 4e3c8d6 commit 39e33e8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/actions/macos-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'install-macos-prerequisites'

description: 'Install prerequisites for Mac OS compilation'

runs:
using: 'composite'

steps:
- name: Install macOS packages
shell: bash
run: |
echo "::group::Install packages"
brew reinstall gcc
brew install automake
brew install netcdf
brew install netcdf-fortran
brew install mpich
echo "::endgroup::"
20 changes: 20 additions & 0 deletions .github/workflows/macos-compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: MacOS Compilation Test

on: [push, pull_request]

jobs:
compile:

runs-on: macOS-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: ./.github/actions/macos-setup

- name: Compile models
run: make -j

# TODO: Run a few of the models and compare parameter.doc files?
File renamed without changes.

0 comments on commit 39e33e8

Please sign in to comment.