forked from Project-OSRM/osrm-backend
-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (47 loc) · 1.36 KB
/
osrm-backend-ci.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
name: osrm-backend CI
on:
push:
branches:
- 'master'
- 'release/**'
pull_request:
types: [opened, synchronize, reopened]
branches:
- 'master'
- 'release/**'
paths:
- '**.cmake'
- '**.cc'
- '**.cpp'
- '**.h'
- '**.hpp'
jobs:
ci-clang-format:
name: osrm-backend check codes format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: clang-format
run: docker run --mount "src=$(pwd),dst=/workspace/osrm-backend,type=bind" telenavmap/osrm-backend-dev bash -c "cd /workspace/osrm-backend && ./scripts/format.sh && ./scripts/error_on_dirty.sh"
ci-linux:
name: osrm-backend CI ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
build_type: ["", "-DCMAKE_BUILD_TYPE=Debug"]
steps:
- uses: actions/checkout@v2
- name: Build
run: mkdir build && cd build && cmake ../ -DENABLE_MASON=1 ${{ matrix.build_type }} && cmake --build .
ci-macosx:
name: osrm-backend CI osx
runs-on: macos-latest
strategy:
matrix:
build_type: ["", "-DCMAKE_BUILD_TYPE=Debug"]
env:
CMAKE_BUILD_EXTRA_PARAM: "-- -j"
steps:
- uses: actions/checkout@v2
- name: Build
run: mkdir build && cd build && cmake ../ -DENABLE_MASON=1 ${{ matrix.build_type }} && cmake --build . ${{ env.CMAKE_BUILD_EXTRA_PARAM }}