forked from MODFLOW-USGS/modflow6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PRT): support particle tracking
* add particle tracking (PRT) model type * add Fortran unit test harness & minimal tests * add generic routine to disable development feature * add autotests for PRT simulations and example models
- Loading branch information
Showing
149 changed files
with
22,056 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
name: MODFLOW 6 PRT dev build | ||
# Only permit one development build to run at once. | ||
# If a new build is triggered the previous cancels. | ||
concurrency: | ||
group: dev-dist | ||
cancel-in-progress: true | ||
on: | ||
push: | ||
branches: | ||
- PRT | ||
paths-ignore: | ||
- '**.md' | ||
- 'doc/**' | ||
pull_request: | ||
branches: | ||
- PRT | ||
paths-ignore: | ||
- '**.md' | ||
- 'doc/**' | ||
schedule: | ||
- cron: '0 2 * * *' | ||
jobs: | ||
set_options: | ||
name: Set release options | ||
if: github.ref_name != 'master' | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
outputs: | ||
version: ${{ steps.set_version.outputs.version }} | ||
steps: | ||
|
||
- name: Checkout modflow6 | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ github.repository_owner }}/modflow6 | ||
ref: PRT | ||
|
||
- name: Set version | ||
id: set_version | ||
run: | | ||
ver=$(cat version.txt | xargs) | ||
echo "version=$ver" >> $GITHUB_OUTPUT | ||
make_dist: | ||
name: Make distribution | ||
needs: set_options | ||
# don't make distribution if triggering event is pull request | ||
if: github.event_name == 'push' || github.event_name == 'schedule' | ||
uses: MODFLOW-USGS/modflow6/.github/workflows/release.yml@develop | ||
with: | ||
approve: false | ||
branch: PRT | ||
developmode: true | ||
full: false | ||
linux_version: ubuntu-20.04 | ||
run_tests: false | ||
version: ${{ needs.set_options.outputs.version }}+prt | ||
|
||
release: | ||
name: Create release | ||
needs: make_dist | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
# don't create a release post if triggering event is pull request | ||
if: github.event_name == 'push' || github.event_name == 'schedule' | ||
steps: | ||
|
||
- name: Delete Older Releases | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
keep_latest: 10 | ||
delete_tags: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: nightly | ||
|
||
- name: List artifacts | ||
working-directory: nightly | ||
run: | | ||
echo "artifacts include:" | ||
ls -lR . | ||
- name: Prune artifacts | ||
working-directory: nightly | ||
run: | | ||
echo "pruning artifacts" | ||
for f in mf*/mf*; do mv -- "$f" "$(basename $f)"; done | ||
for f in *.zip; do mv -- "$f" "${f##mf*prt_}"; done | ||
find mf* -type d -delete | ||
rm -rf bin-* | ||
rm -rf release_notes | ||
echo "release assets include:" | ||
ls -lR . | ||
- name: Get date | ||
uses: josStorer/get-current-time@v2 | ||
id: current-time | ||
with: | ||
format: YYYYMMDD | ||
|
||
- name: Show time | ||
env: | ||
TIME: "${{ steps.current-time.outputs.time }}" | ||
F_TIME: "${{ steps.current-time.outputs.formattedTime }}" | ||
run: echo $TIME $F_TIME | ||
|
||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ steps.current-time.outputs.formattedTime }} | ||
name: ${{ steps.current-time.outputs.formattedTime }} PRT development build | ||
body: "MODFLOW 6 PRT development build, compiled with Intel Fortran." | ||
draft: false | ||
allowUpdates: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: "nightly/*.zip,nightly/doc/*.pdf" |
Oops, something went wrong.