Skip to content

[JuPedSim] Minor changes. #124

[JuPedSim] Minor changes.

[JuPedSim] Minor changes. #124

Workflow file for this run

name: jupedsim
on:
push: # run on push events
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
branches:
- '**'
tags:
- '*'
pull_request: # run on pull requests
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
schedule:
- cron: '5 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cloning jpscore
uses: actions/checkout@v3
with:
repository: jupedsim/jpscore
path: jpscore
- name: Preparing Build System
run: |
sudo apt-get update
sudo apt-get install cmake libeigen3-dev libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgtest-dev gettext
sudo apt-get install wget unzip ninja-build clang clang-format-14 libglm-dev qtbase5-dev libvtk9-dev libvtk9-qt-dev libopengl-dev
sudo pip3 install texttest
- name: Building jpscore dependencies
run: jpscore/scripts/setup-deps.sh --install-path ./jpscore-deps
- name: Building jpscore
run: |
mkdir jpscore-build jpscore-install
cd jpscore-build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PWD/../jpscore-deps -DCMAKE_INSTALL_PREFIX=$PWD/../jpscore-install -DBUILD_JPSVIS=OFF ../jpscore
cmake --build .
cmake --install .
- name: Building GEOS
run: |
wget https://download.osgeo.org/geos/geos-3.11.2.tar.bz2
tar xjf geos-3.11.2.tar.bz2
cd geos-3.11.2
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/../../jpscore-install ..
cmake --build .
ctest --output-on-failure .
cmake --install .
- name: Cloning SUMO
uses: actions/checkout@v3
with:
path: sumo
fetch-depth: 0
- name: Fetching SUMO tags
run: |
cd sumo
git fetch --tags --force
- name: ccache
if: github.event_name != 'schedule'
uses: hendrikmuhs/ccache-action@v1.2
- name: Configuring and building SUMO
run: |
mkdir -p sumo/cmake-build
cd sumo/cmake-build
cmake -DJUPEDSIM_DIR=$PWD/../../jpscore-install ..
make -j4
make traas
sudo make install
- name: Building Examples and Tests
run: |
sudo apt-get install python3-pyproj python3-rtree python3-pandas python3-flake8 python3-autopep8 python3-scipy python3-pulp python3-ezdxf
sudo pip3 install ortools==9.5.2237
sudo pip3 install -r sumo/tools/requirements.txt
cd sumo/cmake-build
make CTEST_OUTPUT_ON_FAILURE=1 examples test
../tests/runTests.sh -a sumo.extra.ci -b ci