-
Notifications
You must be signed in to change notification settings - Fork 340
41 lines (41 loc) · 1015 Bytes
/
vroom.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: vroom
on:
push:
branches:
- master
tags:
- 'v*.*.*'
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
jobs:
vroom:
strategy:
matrix:
cxx: ['g++-11', 'clang++-14']
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libasio-dev libglpk-dev jq
- name: Build vroom
run: make -j
env:
CXX: ${{ matrix.cxx }}
working-directory: src
- name: Validate output
run: diff <(bin/vroom -i docs/example_2.json | jq '.routes[].steps[]' --sort-keys) <(jq '.routes[].steps[]' --sort-keys docs/example_2_sol.json)
- name: Build libvroom example
run: make -j
env:
CXX: ${{ matrix.cxx }}
working-directory: libvroom_examples