Skip to content

Multi-col atmosphere support, multi-col heat redist., oblateness from spin, plus UX changes #345

Multi-col atmosphere support, multi-col heat redist., oblateness from spin, plus UX changes

Multi-col atmosphere support, multi-col heat redist., oblateness from spin, plus UX changes #345

Workflow file for this run

# This job updates the documentation and pushes it to GitHub pages
name: Docs
on:
pull_request:
branches: [main]
paths:
- docs/src/**
- docs/make.jl
- docs/Project.toml
- .github/workflows/documentation.yml
push:
branches: [main]
paths:
- docs/src/**
- docs/make.jl
- docs/Project.toml
- .github/workflows/documentation.yml
jobs:
build:
permissions:
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: NetCDF
run: |
sudo apt update
sudo apt-get install libnetcdff-dev netcdf-bin gfortran gcc
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
- uses: julia-actions/cache@v1
- name: Install Documenter
run: julia -e 'using Pkg; Pkg.add(["Documenter", "DocumenterPages"]); Pkg.instantiate()'
# Setup SOCRATES
- name: Get SOCRATES
uses: actions/checkout@v4
with:
repository: 'FormingWorlds/SOCRATES'
path: 'SOCRATES'
- uses: actions/cache@v4
id: cache-socrates
with:
path: |
SOCRATES/bin
SOCRATES/sbin
SOCRATES/set_rad_env
key: socrates-${{ hashFiles('SOCRATES/version') }}
- name: Build SOCRATES
if: steps.cache-socrates.outputs.cache-hit != 'true'
run: |
export LD_LIBRARY_PATH=""
export RAD_DIR="/home/runner/work/AGNI/AGNI/SOCRATES"
cd $RAD_DIR
./configure
./build_code
cd ..
- name: Build AGNI
run: |
export RAD_DIR="/home/runner/work/AGNI/AGNI/SOCRATES"
export RAD_BIN="$RAD_DIR/bin/"
export LD_LIBRARY_PATH=""
julia --project="./" -e 'using Pkg; Pkg.build()'
- name: Build docs and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
run: |
export RAD_DIR="/home/runner/work/AGNI/AGNI/SOCRATES"
julia --project="./" docs/make.jl