forked from pyswmm/Stormwater-Management-Model
-
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.
Merge pull request pyswmm#45 from SWMM-Project/upstream-dev
Upstream dev
- Loading branch information
Showing
10 changed files
with
173 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: [ upstream-dev ] | ||
pull_request: | ||
branches: [ upstream-dev ] | ||
|
||
jobs: | ||
win_build: | ||
runs-on: windows-2016 | ||
defaults: | ||
run: | ||
shell: cmd | ||
env: | ||
PROJECT: swmm | ||
BUILD_HOME: build | ||
TEST_HOME: nrtests | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r tools/requirements-win.txt | ||
- name: Build and unit test | ||
run: tools/make.cmd /t | ||
|
||
- name: Build for reg test | ||
run: tools/make.cmd | ||
|
||
- name: Before reg test | ||
run: tools/before-nrtest.cmd | ||
|
||
- name: Run reg test | ||
run: tools/run-nrtests.cmd %GITHUB_SHA% %GITHUB_RUN_ID%_%GITHUB_RUN_NUMBER% | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nrtest-artifacts | ||
path: upload/ |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
|
||
|
||
build/ | ||
|
||
.DS_Store | ||
|
||
build*/ | ||
nrtest*/ | ||
|
||
*_export.h | ||
|
||
src/outfile/include/*_export.h | ||
src/solver/include/*_export.h | ||
|
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,35 @@ | ||
# | ||
# CMakeLists.txt - CMake configuration file for swmm-solver/extern | ||
# | ||
# Created: March 16, 2020 | ||
# Updated: May 21, 2020 | ||
# | ||
# Author: Michael E. Tryby | ||
# US EPA - ORD/CESER | ||
# | ||
|
||
|
||
if(WIN32) | ||
set(Boost_USE_STATIC_LIBS ON) | ||
else() | ||
set(Boost_USE_STATIC_LIBS OFF) | ||
add_definitions(-DBOOST_ALL_DYN_LINK) | ||
endif() | ||
|
||
|
||
# Environment variable "BOOST_ROOT_X_XX_X" points to local install location | ||
if (DEFINED ENV{BOOST_ROOT_1_72_0}) | ||
set(BOOST_ROOT $ENV{BOOST_ROOT_1_72_0}) | ||
|
||
elseif(DEFINED ENV{BOOST_ROOT_1_67_0}) | ||
set(BOOST_ROOT $ENV{BOOST_ROOT_1_67_0}) | ||
|
||
endif() | ||
|
||
|
||
find_package(Boost 1.67.0 | ||
COMPONENTS | ||
unit_test_framework | ||
) | ||
|
||
include_directories (${Boost_INCLUDE_DIRS}) |
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,14 @@ | ||
LIBRARY SWMM5.DLL | ||
|
||
EXPORTS | ||
swmm_close = _swmm_close@0 | ||
swmm_end = _swmm_end@0 | ||
swmm_getError = _swmm_getError@8 | ||
swmm_getMassBalErr = _swmm_getMassBalErr@12 | ||
swmm_getVersion = _swmm_getVersion@0 | ||
swmm_getWarnings = _swmm_getWarnings@0 | ||
swmm_open = _swmm_open@12 | ||
swmm_report = _swmm_report@0 | ||
swmm_run = _swmm_run@12 | ||
swmm_start = _swmm_start@4 | ||
swmm_step = _swmm_step@4 |
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
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