Skip to content

Documentation

Documentation #510

Workflow file for this run

name: Build & Test
on:
push:
pull_request:
env:
BUILD_TYPE: Release
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Compile
# Build your program with the given configuration
run: |
sudo apt install libxerces-c-dev python3-sphinx
pip3 install -U sphinx
mkdir -p build
cd build
rm -rf *
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../bin ..
cmake --build .
cd ..
echo Compiled!
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: road-generation
path: |
road-generation_executable
build/libroad-generation.so
Road_Generation_Tests:
needs: [Build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: road-generation
- name: Prep test
run: |
sudo apt install libxerces-c-dev
chmod +x road-generation_executable
- name: test 1
run: |
./road-generation_executable test/4a_fixed.xml
- name: test 2
run: |
./road-generation_executable test/junction_m2a.xml
- name: test 3
run: |
./road-generation_executable test/junction_ma.xml
- name: test 4
run: |
./road-generation_executable test/junction_ma_2.xml
- name: test 5
run: |
./road-generation_executable test/junction_ma_3.xml
- name: test 6
run: |
./road-generation_executable test/junction_ma_4.xml
- name: test 7
run: |
./road-generation_executable test/junction_ma_5.xml
- name: test 8
run: |
./road-generation_executable test/junction_ma_6.xml