Replace array with umap in TrafficLight class #532
Workflow file for this run
This file contains hidden or 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: Run examples on CMake | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install tools manually | |
| run: | | |
| if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then | |
| sudo apt update | |
| sudo apt install libtbb-dev | |
| elif [ ${{ matrix.os }} == 'macos-latest' ]; then | |
| brew install tbb | |
| fi | |
| - uses: actions/checkout@v4 | |
| - name: Configure CMake | |
| working-directory: ${{github.workspace}}/examples | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: Build | |
| working-directory: ${{github.workspace}}/examples | |
| run: cmake --build build | |
| - name: Stalingrado | |
| working-directory: ${{github.workspace}}/examples | |
| run: make stalingrado | |
| - name: Slow Charge TL | |
| working-directory: ${{github.workspace}}/examples | |
| run: make slow_charge_tl | |
| - name: Slow Charge RB | |
| working-directory: ${{github.workspace}}/examples | |
| run: make slow_charge_rb |