Skip to content

Commit

Permalink
Merge pull request #372 from OpenWaterAnalytics/release_version
Browse files Browse the repository at this point in the history
Draft for OWA_v5.1.14 release 🚀
  • Loading branch information
abhiramm7 authored May 18, 2022
2 parents 3f79b60 + 77bc771 commit 7e7e6da
Show file tree
Hide file tree
Showing 61 changed files with 2,002 additions and 523 deletions.
83 changes: 29 additions & 54 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# build-and-test.yml - GitHub Actions CI for swmm-solver
#
# Created: May 19, 2020
# Updated: Aug 13, 2020
# Updated: Jun 22, 2021
#
# Author: Michael E. Tryby
# US EPA - ORD/CESER
Expand All @@ -14,40 +14,39 @@
name: Build and Test

on: [push, pull_request]
# push:
# branches: [master release develop]
# tags:
# - 'v*.*.*'
# pull_request:
# branches: [master release develop]

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-2016, ubuntu-16.04, macos-10.15]
os: [windows-2022, ubuntu-20.04, macos-10.15]
requirements: [requirements-swmm.txt]
include:
- os: windows-2016
- os: windows-2022
sys_pkgs: choco install boost-msvc-14.1
generator: Visual Studio 15 2017 Win64
experimental: true
script_extension: cmd
build_unit_test: make.cmd /g "Visual Studio 17 2022" /A "x64" /t
build_reg_test: make.cmd /g "Visual Studio 17 2022" /A "x64"
before_reg_test: before-nrtest.cmd
run_reg_test: run-nrtests.cmd
build_id: "%GITHUB_RUN_ID%_%GITHUB_RUN_NUMBER%"
experimental: false
artifacts_ext: zip
artifact_content_type: zip
gh_run_number: "%GITHUB_RUN_ID%_%GITHUB_RUN_NUMBER%"
defaults:
run:
shell: cmd
working-directory: ./ci-tools/windows

- os: ubuntu-16.04
- os: ubuntu-20.04
sys_pkgs: sudo apt install libboost-dev libboost-all-dev
generator: "Unix Makefiles"
# Statically link libraries with -s switch to address GitHub Ubuntu 20.04 symbol errors (issue #340)
build_unit_test: make.sh -s -t -g "Unix Makefiles"
build_reg_test: make.sh -s -g "Unix Makefiles"
before_reg_test: before-nrtest.sh
run_reg_test: run-nrtests.sh
build_id: ${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
experimental: true
script_extension: sh
gh_run_number: ${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
artifacts_ext: tar.gz
artifact_content_type: tar
defaults:
Expand All @@ -57,11 +56,12 @@ jobs:

- os: macos-10.15
sys_pkgs: brew install libomp boost
generator: Xcode
build_unit_test: make.zsh -t -g "Xcode"
build_reg_test: make.zsh -g "Xcode"
before_reg_test: before-nrtest.zsh
run_reg_test: run-nrtests.zsh
build_id: ${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
experimental: true
ci_tools_path: ci-tools/darwin
script_extension: zsh
gh_run_number: ${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
artifacts_ext: tar.gz
artifact_content_type: tar
defaults:
Expand All @@ -80,8 +80,6 @@ jobs:
PROJECT: swmm
BUILD_HOME: build
TEST_HOME: nrtests
NRTESTS_URL: https://github.com/OpenWaterAnalytics/swmm-nrtestsuite
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- name: Checkout repo
Expand All @@ -102,52 +100,29 @@ jobs:
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install -r ${{ matrix.requirements }}
python -m pip install -r requirements-swmm.txt
- name: Install required system packages
run: ${{ matrix.sys_pkgs }}

- name: Build and unit test
run: |
./make.${{ matrix.script_extension }} -t -g "${{ matrix.generator }}"
run: ./${{ matrix.build_unit_test }}

- name: Build for reg test
run: |
./make.${{ matrix.script_extension }} -g "${{ matrix.generator }}"
run: ./${{ matrix.build_reg_test }}

- name: Before reg test
run: |
./before-nrtest.${{ matrix.script_extension }} v1.0.3-dev
env:
NRTESTS_URL: https://github.com/OpenWaterAnalytics/swmm-nrtestsuite
BENCHMARK_TAG: v2.0.1
run: ./${{ matrix.before_reg_test }} ${{ env.BENCHMARK_TAG }}

- name: Run reg test
run: |
./run-nrtests.${{ matrix.script_extension }} ${{ matrix.gh_run_number }}
run: ./${{ matrix.run_reg_test }} ${{ matrix.build_id }}

- name: Upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: build-test-artifacts
path: upload/*.*

# - name: Create release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: true
# prerelease: true

# - name: Upload release assets
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: upload/${PROJECT}*.${{ matrix.artifacts_ext }}
# asset_name: owa-${PROJECT}-${{ matrix.os }}-${{ github.ref }}.${{ matrix.artifacts_ext }}
# asset_content_type: application/${{ matrix.artifact_content_type }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@


# Build files
ci-tools/
build/
*.o
/Debug/
Expand All @@ -45,3 +46,4 @@ tests/solver/data/feng*

# Generated files
*_export.h
version.h
26 changes: 0 additions & 26 deletions AUTHORS

This file was deleted.

23 changes: 23 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "McDonnell"
given-names: "Bryant"
orcid: "https://orcid.org/0000-0002-6250-2220"
- family-names: "Wu"
given-names: "Jia Xin"
orcid: "https://orcid.org/0000-0003-2233-9542"
- family-names: "Ratliff"
given-names: "Katherine"
orcid: "https://orcid.org/0000-0003-1410-2756"
- family-names: "Mullapudi"
given-names: "Abhiram"
orcid: "https://orcid.org/0000-0001-8141-3621"
- family-names: "Tryby"
given-names: "Michael"
orcid: "https://orcid.org/0000-0001-5525-0734"
title: "Open Water Analytics Stormwater Management Model"
version: 5.1.13
doi: 10.5281/zenodo.5484299
date-released: 2021-01-12
url: "https://github.com/OpenWaterAnalytics/Stormwater-Management-Model"
21 changes: 14 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
# Created: July 11, 2019
# Updated: May 19, 2021
#
# Author: Michael E. Tryby
# US EPA ORD/CESER
# Authors: Michael E. Tryby
# US EPA ORD/CESER
#

################################################################################
################## CMAKELISTS FOR SWMM-SOLVER PROJECT ####################
################################################################################


cmake_minimum_required (VERSION 3.13)

Expand All @@ -18,9 +22,9 @@ endif()


project(swmm-solver
VERSION 5.1.13
VERSION 5.1.14
LANGUAGES C CXX
)
)

# Append local dir to module search path
# list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
Expand All @@ -41,9 +45,12 @@ set(LIBRARY_DIST "lib")
set(CONFIG_DIST "cmake")


# Define build options
option(BUILD_TESTS "Build component tests (requires Boost)" OFF)
option(BUILD_DOCS "Build toolkit docs (requires Doxygen)" OFF)

# Added option to statically link libraries to address GitHub Ubuntu 20.04 symbol errors (issue #340)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)

# Add project subdirectories
if(BUILD_DOCS)
Expand All @@ -68,19 +75,19 @@ endif()
include(InstallRequiredSystemLibraries)


# Create install target for License and Authors files
# Create install target for License and Contributors files
install(
FILES
"LICENSE"
"AUTHORS"
"CONTRIBUTORS"
DESTINATION
"."
)


# Configure CPack driven installer package
set(CPACK_GENERATOR "ZIP;TGZ")
set(CPACK_PACKAGE_VENDOR "US_EPA")
set(CPACK_PACKAGE_VENDOR "OWA")
set(CPACK_ARCHIVE_FILE_NAME "swmm")

include(CPack)
111 changes: 111 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
#
# CONTRIBUTORS
#
# List of people whose contributions reside in the default branch
# of OWA SWMM ordered alphabetically by last name. This file is modeled after
# the CREDITS file maintained by the Linux project.
#
# Fields are:
# name (N), email (E), license (L), description (D)
#

N: Colleen Barr
E: [email protected]
L: Public Domain
D: Output file API

N: Caleb Buahin
E: [email protected]
L: MIT License
D: Development operations, bug fix, v5.1.14 merge, review

N: Laurent Courty
E: [email protected]
L: MIT License
D: Bug fix, testing

N: Robert Dickinson
E: [email protected]
L: Public Domain
D: Legacy maintainer

N: Adam Erispaha
E: [email protected]
L: MIT License
D: Linux makefile

N: Sam Hatchett
E: [email protected]
L: MIT License
D: Development operations

N: Constantine Karos
E: [email protected]
L: MIT License
D: Bug fix, testing, development operations, Water quality API

N: Dominik Leutnant
E: [email protected]
L: MIT License
D: Mac OS build

N: Brooke Mason
E: [email protected]
L: MIT License
D: Water quality API, testing

N: Bryant McDonnell
E: [email protected]
L: MIT License
D: Founder, maintainer, toolkit API, testing, review, bug fix, documentation

N: Abhiram Mullapudi
E: [email protected]
L: MIT License
D: Rain API, testing, water quality API, development operations, review

N: Gonzalo Peña-Castellanos
E: [email protected]
L: MIT License
D: Development operations, testing, documentation

N: Katherine Ratliff
E: [email protected]
L: MIT License
D: Stats API, bug fix, testing, review

N: Lewis Rossman
E: [email protected]
L: Public Domain
D: Legacy developer

N: Michelle Simon
E: [email protected]
L: Public Domain
D: Documentation

N: Hsi-Nien Tan
E: [email protected]
L: MIT License
D: Bug fix, testing

N: Michael Tryby
E: [email protected]
L: Public Domain
D: Mentor, development operations, review
D: Output library, testing framework, CLI, versioning, Python wrapper

N: Jia Xin Wu
E: [email protected]
L: MIT License
D: Maintainer, LID API, bug fixes, testing, development operations, Python wrapper, review

N: Xu Xi
E: [email protected]
L: MIT License
D: Bug fix

N: Mingda Zhang
E: [email protected]
L: MIT License
D: Bug fix, testing
Loading

0 comments on commit 7e7e6da

Please sign in to comment.