Skip to content

cmake.yml - 6

cmake.yml - 6 #10

Workflow file for this run

name: CMake Build
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build-ubuntu:
name: Build Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: 2.1. Obtaining OpenSees Source Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Conan 2.x
run: |
pip install conan
conan profile detect --force
- name: 2.4.2. Building the OpenSees Applications and Python module
run: |

Check failure on line 31 in .github/workflows/build_cmake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_cmake.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
mkdir -p build
cd build
conan install .. --output-folder=. --build=missing
ls
ls
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
cmake --build . --target OpenSees -j8
cmake --build . --target OpenSeesPy -j8
mv lib/OpenSeesPy.so lib/opensees.so
- name: Verification OpenSeesPySP # Simple Sanity Test
run: |
export PYTHONPATH="./build/lib/"
python3 -c "import sys; print(sys.path)"
python3 ./EXAMPLES/ExamplePython/example_variable_analysis.py
- name: Run pytest in tests/ folder
run: |
python3 -m pip install pytest
cp build/lib/opensees.so tests/
cd tests
pytest -v
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: OpenSees_Ubuntu
path: |
./build/bin/OpenSees
./build/lib/opensees.so