-
Notifications
You must be signed in to change notification settings - Fork 7
74 lines (64 loc) · 1.82 KB
/
nightly-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: MODFLOW 6 nightly build
on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
# - cron: '*/10 * * * *' # run every 10 minutes
# - cron: '20 */1 * * *' # run every hour at 20 minutes past the hour
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_for_os:
name: compile on linux, macos, and windows
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
artifact_name: linux.zip
body_name: bodyFileLinux
- os: macos-latest
artifact_name: mac.zip
body_name: bodyFileMac
- os: windows-latest
artifact_name: win64.zip
body_name: bodyFileWindows
defaults:
run:
shell: bash
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.0.0
with:
python-version: 3.9
- name: Install Python packages
run: |
pip install -r requirements.txt
pip list
- name: Install gfortran
uses: modflowpy/install-gfortran-action@v1
- name: Checkout modflow6
uses: actions/checkout@v3
with:
repository: MODFLOW-USGS/modflow6
path: modflow6
ref: develop
- name: Update flopy classes
working-directory: modflow6/autotest
run: |
python update_flopy.py
- name: Build and zip applications
working-directory: modflow6/distribution
run: |
python build_nightly.py
- name: Move the build zip file
run: |
ls -l ./modflow6/distribution/*
mv ./modflow6/distribution/temp_zip/${{ matrix.artifact_name }} ./${{ matrix.artifact_name }}
ls -l ./