Skip to content

Make build more portable #17

Make build more portable

Make build more portable #17

Workflow file for this run

name: Compile SOCRATES
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
install:
runs-on: ubuntu-latest
name: Install and build
steps:
- uses: actions/checkout@v4
- name: NetCDF
run: |
sudo apt update
sudo apt-get install libnetcdff-dev netcdf-bin gfortran gcc
- name: List gfortran defaults
run: |
gfortran -v
- name: Build
run: |
export LD_LIBRARY_PATH=""
./configure
./build_code
source set_rad_env
- name: Zip
run: |
zip -r socrates-${{ runner.os }} .
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: socrates-${{ runner.os }}.zip
path: socrates-${{ runner.os }}.zip
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: socrates-${{ runner.os }}.zip
body_path: version