forked from USEPA/Stormwater-Management-Model
-
Notifications
You must be signed in to change notification settings - Fork 77
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 #403 from pyswmm/develop
- Loading branch information
Showing
3 changed files
with
70 additions
and
1 deletion.
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,20 @@ | ||
#!/bin/bash | ||
|
||
#script for running regression tests in arm64 docker container | ||
|
||
# setup environment | ||
git config --global --add safe.directory /swmm | ||
cd swmm | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install aenum nrtest swmm-toolkit nrtest-swmm | ||
|
||
# export build vars | ||
export BUILD_HOME="build" | ||
export PROJECT="swmm" | ||
export PLATFORM="linux" | ||
|
||
# run regression tests | ||
./ci-tools/linux/make.sh | ||
source ./ci-tools/linux/before-nrtest.sh | ||
bash ./ci-tools/linux/run-nrtests.sh |
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,44 @@ | ||
name: Build and Test ARM64 | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
cross-build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./ | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Clone ci-tools repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: pyswmm/ci-tools | ||
ref: master | ||
path: ci-tools | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
- name: start docker | ||
run: docker run -id --name cross --volume="./:/swmm" --cpuset-cpus="0" karosc/build_swmm_arm64v8:latest | ||
|
||
- name: Build and unit test | ||
run: docker exec cross /bin/bash -c "cd /swmm && ./ci-tools/linux/make.sh -t -g 'Unix Makefiles'" | ||
|
||
- name: Build for reg test | ||
run: > | ||
chmod +x ./.github/docker_tools/run_regression_tests.sh && | ||
docker exec cross /bin/bash -c "/swmm/.github/docker_tools/run_reg_test.sh" | ||
- name: Upload artifacts | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-test-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