-
Notifications
You must be signed in to change notification settings - Fork 340
64 lines (64 loc) · 1.84 KB
/
vroom_libosrm.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: vroom + libosrm
on:
push:
branches:
- master
tags:
- v*.*.*
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths:
- '.github/workflows/vroom_libosrm.yml'
- '**libosrm_wrapper**'
env:
osrm-tag: v5.27.1
jobs:
libosrm:
strategy:
matrix:
cxx: ['g++-12', '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
- name: Cache OSRM
id: cache
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/osrm-backend
key: osrm-${{ env.osrm-tag }}-${{ matrix.cxx }}
- name: Checkout OSRM repository
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: Project-OSRM/osrm-backend
ref: ${{ env.osrm-tag }}
path: osrm-backend
- name: Install OSRM dependencies
run: sudo apt-get install build-essential git cmake pkg-config libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev libzip-dev libboost-all-dev lua5.2 liblua5.2-dev libtbb-dev libluabind-dev libluabind0.9.1d1
working-directory: osrm-backend
- name: Compile OSRM
if: steps.cache.outputs.cache-hit != 'true'
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
working-directory: osrm-backend
- name: Install OSRM
run: sudo cmake --build . --target install
working-directory: osrm-backend/build
- name: Compile vroom
run: make -j
env:
CXX: ${{ matrix.cxx }}
working-directory: src