Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Fix setup/build/install scripts (#1282)
Browse files Browse the repository at this point in the history
* Update gridlabd.h

* Update setup.cpp

* Update property.h

* Update Makefile.am

* Update Linux-ubuntu-20.sh

* Create Linux-ubuntu-22.sh

* Update Linux-ubuntu-22.sh

* Update Linux-ubuntu-20.sh

* Update Makefile.am

* Update Makefile.am

* Update README.md

* Update Makefile.am

* Update configure.ac

* Add install folder

* Update tape_plot.cpp

* Update controller.cpp

* Update tape_plot.cpp

* Create Linux-debian-11.sh

* Create debian-11.sh

* Update Linux-debian-11.sh

* Update Linux-ubuntu-20.sh

* Update Linux-ubuntu-22.sh

* Update setup.sh

* Update setup.sh

* Update README.md

* Change to GRIDLABD_ORIGIN usage

* Update setup.sh

* Add no-cache option to curl calls

* Work on fast install

* Work progress on linux install images

* Update Makefile.am

* Work progress

* Update build_number

* Work progress

* Work progress

* Work progress

* Update Linux.sh

* Update Linux.sh

* Update Linux.sh

* Update Linux.sh

* Update Darwin.sh

* Update create.sh

* Update Makefile.am

* Update setup-dev.sh

* Update Makefile.am

* Update Makefile.am

* Update Makefile.am

* Update Makefile.am

* Update version.sh

* Update requirements.py

* Update Makefile.am

* Update build_number

* Update Makefile.am

* Update Makefile.am

* Update build_number

* Update Makefile.am

* Update README.md

* Update install.sh

* Update ubuntu_22-x86_64.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Clean up root folder

* More cleanup

* Update install.sh

* Update install.sh

* Update build.sh

* Update setup.sh

* Update install.sh

* Update README.md

* Update build.sh

* Update README.md

* Update Makefile.am

* Update build_number

* Update Makefile.am

* Update ubuntu_20-x86_64.sh

* Update Makefile.am

* Create ubuntu_20.sh

* Update ubuntu_22.sh

* Update Makefile.am

* Update README.md

* Change ~/.venv/gridlabd to ~/.gridlabd

* work update

* Update version.sh

* Fix version name

* Fix macos build on ventura

* Fix additional ventura build errors

* Update ubuntu_22-x86_64.sh

* Update ubuntu_20-x86_64.sh

* Update configure.ac

* Fix python3.10-config link

* Update configure.ac

* Update Makefile.am

* Update README.md

* Work progress

* Update setup scripts

* Fix setup filename

* Update darwin_22-x86_64.sh

* Update setup.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update darwin_22-x86_64.sh

* Update frequency_gen.cpp

* Create darwin_20-x86_64.sh

* Create darwin_21-x86_64.sh

* Update ubuntu_20-x86_64.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update init.cpp

* Update install.sh

* Install script update

* Update Makefile.am

* Update Makefile.am

* Fix system target links

* Update setup scripts

* Update setup scripts

* Update scripts

* Update scripts

* Update build.sh

* Update installer

* Update .gitignore

* Delete config.cache

* Update README.md

* Remove old setup scripts

* Update README.md

* Update README.md

* Fix setup issues

* Update build and setup help and options

* Update Makefile.am

* Update README.md

* Update Linux.sh

* Update build.sh

* Update build.sh

* Changed all instances of "hipas" to "slacgismo" in preparation for transfer to LF Energy

* Update setup.sh

* Update Makefile.am

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update workflows to use new setup/build process

* Update develop.yml

* Update develop.yml

* Update develop.yml

* Update develop.yml

* Update workflows

* Fix tnt_126 warnings

* Fix tools/test_create_schedule.py

* Update .gitignore

* Update .gitignore

* Reorganize .gitignore

* Fix brackets in tnt_126 fortran headers

* Undo erroneous namespace updates

* Cosmetic updates

* Documentation updates

* Create README.md

* Update .gitignore

* Delete configure.opt

* Create README.md

* Update test_matrix_linalg.glm

* Fixed missing barriers in TNT headers

* Fix geodata autotest

* Update docker build procedure

* Docker build update

* Move python_* to python/*

* Update gridlabd.sh

* Update building_occupancy.csv

* Update building.cpp

* Update gridlabd.sh

* Add github_actions exclusion for docker build validation

* Minor updates

* Update build.sh

* Working update

* Update build.sh

* Update gridlabd.sh

* Update docker build script

* Update build.sh

* Update gridlabd.sh

* Update build.sh

* Update build.sh

* Update README.md

* Create README.md

* Folder cleanup

* Add/update folder README files

* Update build.sh

* Update develop.yml

* Update develop.yml

* Remove machine type from docker image name

* Update README.md

* Delete pulls.md

* Update README.md

* Update README.md

* Move python environment files to gridlabd install folder

* Update README.md

* Fix .gitignore

* Fix loadshape autotest

* Update test_loadshape_exercise_2_3_3.glm

* Disable pulsed loadshape autotest -- it's not supported anymore

* Added ability use common setup scripts

* Update setup.sh

* Update build.sh

* Update build.sh

* Update globals.cpp

* Update globals.cpp

* Fixed random number generator initialization

* Update player.cpp

* Update unittest.sh
  • Loading branch information
dchassin authored May 12, 2023
1 parent 2f9298e commit b99676c
Show file tree
Hide file tree
Showing 385 changed files with 1,962 additions and 6,785 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,21 @@ jobs:
build:

runs-on: ubuntu-latest
container: hipas/gridlabd-venv:develop

steps:
- uses: actions/checkout@v2

- name: Setup system
run: sudo ./setup.sh --local

- name: Build gridlabd
run: |
set +x
chown -R $(id -u):$(id -g) $PWD /github/home
autoreconf -isf
./configure
make -j$(($(nproc)*3)) python-install system
run: sudo ./build.sh --system --parallel

- name: Install openfido
run: curl -sL https://raw.githubusercontent.com/openfido/cli/main/install.sh | bash
run: curl -sL https://raw.githubusercontent.com/openfido/cli/main/install.sh | sudo sh

- name: Validate system
run: |
gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( utilities/save_validation_errors ; false )
run: sudo gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( sudo utilities/save_validation_errors ; false )

- name: Upload artifacts on failure
uses: actions/upload-artifact@v2
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ jobs:
build:

runs-on: ubuntu-latest
container: hipas/gridlabd_base:220921

steps:
- uses: actions/checkout@v2
- name: Update python3 modules
run: pip3 install -r requirements.txt
- name: Install openfido
run: curl -sL https://raw.githubusercontent.com/openfido/cli/main/install.sh | bash
- name: Run autoconf
run: autoreconf -isf
- name: Configure build
run: ./configure

- name: Setup system
run: sudo ./setup.sh --local

- name: Build gridlabd
run: make -j10 system
- name: Validate build
run: |
gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( utilities/save_validation_errors ; false )
- name: Upload artifacts
run: sudo ./build.sh --system --parallel

- name: Install openfido
run: curl -sL https://raw.githubusercontent.com/openfido/cli/main/install.sh | sudo sh

- name: Validate system
run: sudo gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( sudo utilities/save_validation_errors ; false )

- name: Upload artifacts on failure
uses: actions/upload-artifact@v2
if: failure()
with:
Expand Down
109 changes: 11 additions & 98 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,11 @@ build
documents/html

# http://www.gnu.org/software/autoconf
/autom4te.cache
/autoscan.log
/autoscan-*.log
/aclocal.m4
build-aux/ar-lib
build-aux/compile
build-aux/config.guess
build-aux/config.sub
build-aux/depcomp
source/config.h.in
source/config.h
/configure.scan
build-aux/install-sh
build-aux/ltmain.sh
build-aux/missing
source/stamp-h1
autom4te.cache
autoscan.log
autoscan-*.log
aclocal.m4
configure.scan

# Prerequisites
*.d
Expand Down Expand Up @@ -81,31 +70,17 @@ source/stamp-h1
.settings/
Makefile
config.log
config.cache
config.status
configure
configure~
source/gridlabd
conftest.cpp
conttest.err
confdefs.h
conf[0-9]*[a-z]*/
gridlabd.spec
libtool
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
m4/lt-obsolete.m4
source/build.h
source/config.h.in~
gridlabd.bin
third_party/xerces*/*
third_party/armadillo-7.800.1.tar.gz
third_party/mysql-connector-c-6.1.11-linux-glibc2.12-x86_64.tar.gz
third_party/xerces-c-src_2_8_0.tar.gz
third_party/._armadillo-7.800.1
third_party/armadillo-7.800.1.tar
third_party/armadillo-7.800.1/
third_party/mysql-connector-c-6.1.11-linux-glibc2.12-x86_64.tar
third_party/mysql-connector-c-6.1.11-linux-glibc2.12-x86_64/
third_party/xerces-c-src_2_8_0.tar
*.xcbkptlist
.*.swp
.DS_Store
Expand All @@ -117,21 +92,9 @@ output/
.*
*.log

# document processor outputs
docs/gridlabd.aux
docs/gridlabd.pdf
docs/version.tex

# some common autotest output that should be ignored
validate.txt
autotest/test_*/
*/autotest/test_*/
*/*/autotest/test_*/
*/*/*/autotest/test_*/
source/autotest/ceus.glm
source/autotest/ica_test.glm
source/autotest/test_output_save.csv
converters/autotest/IEEE-13-cyme.glm
test_*/

# widely found generic output files
object_profile.txt
Expand All @@ -142,60 +105,10 @@ fault_check.txt

# requirements files
requirements.txt
python/venv

# specific outputs that should be ignored
python/example.png
models/ieee123/config/local.glm
converters/autotest/IEEE-*-cyme/*
gridlabd.glm
source/autotest/config.glm
source/autotest/modify.glm
validate.zip.gz
converters/autotest/*.png
validate.tar.gz
converters/autotest/weather_recorder.csv
converters/onpoint_history_postal-code_hour_201801010000-201812312359.csv
converters/onpoint_history_postal-code_hour_201801010000-201812312359.glm
converters/test_data.csv
converters/test_data.glm
converters/autotest/weather_recorder.csv
converters/noaa.csv
converters/noaa.glm
source/link/python/examples/example_2/example.png
source/link/python/examples/example_3/example.png
source/link/python/examples/example_3/x.csv
source/link/python/examples/example_1/example.png
source/link/python/examples/example_1/x.csv
source/autotest/test.glm
powerflow/autotest/test_IEEE13_pole_output.csv
gridlabd-core.*
documents/gridlabd.md
documents/gridlabd.pdf
openfido.err
test_*.html
converters/autotest/IEEE-123.html
converters/autotest/solver_nr_profile.csv
converters/autotest/table2glm_input_noclass.glm
converters/autotest/table2glm_input_noname.glm
converters/autotest/table2glm_input.glm
source/geodata/docs/geodata.conf
source/gridlabd.in
geodata.conf
source/autotest/output.csv
python_extras/example/output.csv
*.egg
gridlabd.egg-info/
python/dist/*.whl
python/dist/*.tar.gz
python/gridlabd.egg-info/
gridlabd.egg-*
module/resilience/docs/output.csv
module/powerflow/autotest/controller_1.csv
module/powerflow/autotest/switch_1.csv
module/powerflow/autotest/switch_2.csv
module/powerflow/autotest/switch_3.csv
module/powerflow/autotest/switch_4.csv
tools/autotest/test_meteostat_opt.csv
tools/autotest/test_meteostat_opt.glm
cloud/websites/install.gridlabd.us/validate*.tarz
42 changes: 0 additions & 42 deletions CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit b99676c

Please sign in to comment.