-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 966 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Compile SOCRATES
on:
pull_request:
branches: [main]
push:
branches: [main]
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: 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