Update ElasticMaterialThermal.cpp #6
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
name: CMake Build | |
env: | |
CMAKE_VERSION: 3.20.1 | |
BUILD_TYPE: Debug | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build-ubuntu: | |
name: Ubuntu bundled build | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install conan | |
run: python3 -m pip install conan==1.60.0 | |
- name: Detect Conan Defaults | |
run: | | |
conan --version | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
conan install .. --build missing | |
cmake .. | |
cmake --build . -j8 | |
#- name: Verification | |
# run: | | |
# cd ./EXAMPLES/verification/ && ../../build/OpenSeesTcl runVerificationSuite.tcl | |
- name: Build OpenSeesPy | |
run: | | |
cd ./build | |
cmake .. | |
make -j 4 | |
make OpenSeesPy | |
mkdir fake_folder | |
- name: Rename OpenSeesPy | |
run: | | |
cd ./build | |
mv lib/OpenSeesPy.so lib/opensees.so | |
# Simple sanity test | |
- name: Verification OpenSeesPySP | |
run: | | |
cd ./build | |
cd ../EXAMPLES/ExamplePython/ | |
export PYTHONPATH="../../build/lib/" | |
python -c "import sys; print(sys.path)" | |
python example_variable_analysis.py | |
# # Simple MP sanity test | |
# - name: Verification OpenSeesPyMP | |
# run: | | |
# mpiexec -np 2 python ../EXAMPLES/ExamplePython/example_mpi_paralleltruss_explicit.py | |
build-mac: | |
name: Mac Build | |
runs-on: macos-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install Library | |
run: | | |
ln -s /usr/local/bin/gfortran-11 /usr/local/bin/gfortran | |
brew install hdf5 | |
brew install open-mpi | |
brew install scalapack | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DMUMPS_DIR=$PWD/../../mumps/build | |
cmake --build . --target OpenSees -j8 | |
cmake --build . --target OpenSeesPy -j8 | |
mv ./OpenSeesPy.dylib ./opensees.so | |
- name: Verification OpenSeesPySP | |
run: | | |
cd ./EXAMPLES/ExamplePython/ | |
export PYTHONPATH="../../build/" | |
python3 -c "import sys; print(sys.path)" | |
python3 example_variable_analysis.py | |
# Not building on Windows until we can figure out how to use Fortran | |
# with Github Actions | |
# build-win32: | |
# name: Build on Windows | |
# runs-on: [windows-latest] | |
# steps: | |
# - name: Checkout sources | |
# uses: actions/checkout@v2 | |
# with: {ref: cmake-build} | |
# | |
# - name: Install Conan | |
# uses: turtlebrowser/get-conan@main | |
# | |
# - name: Build | |
# run: | | |
# mkdir build | |
# cd build | |
# cmake .. | |
# cmake --build . --target OpenSeesTcl -j5 | |