-
Notifications
You must be signed in to change notification settings - Fork 158
47 lines (45 loc) · 1.32 KB
/
ci.yaml
File metadata and controls
47 lines (45 loc) · 1.32 KB
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
name: CI
on: [push, pull_request]
jobs:
build-linux:
name: ubuntu-22.04-release
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -e -o pipefail {0}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: check format
run: ./format-files.sh check
- name: configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DOPENDRIVE_BUILD_TESTS=1
- name: build
run: cmake --build build
- name: test
run: ctest --test-dir build --output-on-failure
- name: install
run: sudo cmake --install build
build-windows:
name: windows-2022-release
runs-on: windows-2022
defaults:
run:
shell: C:\msys64\usr\bin\bash.exe {0}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: install clang 14
uses: KyleMayes/install-llvm-action@v2
with:
version: "14"
- name: check format
run: ./format-files.sh check
- name: configure
run: cmake -S . -B build -G "Visual Studio 17 2022" -DOPENDRIVE_BUILD_TESTS=1
- name: build
run: cmake --build build --config Release
- name: test
run: ctest --test-dir build --output-on-failure
- name: install
run: cmake --install build --config Release