-
Notifications
You must be signed in to change notification settings - Fork 697
62 lines (51 loc) · 1.72 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_on_ubuntu_boost_183_gcc_x86:
runs-on: ubuntu-latest
steps:
- name: Ubuntu - Install boost 1.83.0 with gcc and x86
uses: MarkusJx/[email protected]
id: ubuntu-gcc-1_83-x86
with:
boost_version: 1.83.0
platform_version: 20.04
boost_install_dir: /home/runner
toolset: gcc
arch: x86
cache: true
- uses: actions/checkout@v3
- name: install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y googletest asciidoc source-highlight doxygen graphviz
- name: Run CMake config
run: cmake -Bbuild -DBOOST_ROOT=/home/runner/boost/boost/ -DGTEST_ROOT=/usr/src/googletest/googletest/ -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install .
- name: Build CMake
run: cmake --build build -t all build_tests doc install
- uses: actions/upload-artifact@v2
with:
name: vsomeip
path: '${{ runner.workspace }}/install/**/*'
build_on_windows_boost_183_gcc_x86:
runs-on: windows-latest
steps:
- name: Windows - Install boost 1.83.0 with gcc and x86
uses: MarkusJx/[email protected]
id: windows-gcc-1_83-x86
with:
boost_version: 1.83.0
platform: windows
boost_install_dir: C:\runner
toolset: msvc
arch: x86
cache: true
- uses: actions/checkout@v3
- name: Run CMake
run: cmake -Bbuild -D BOOST_ROOT=C:\runner\boost/boost\ .
- name: Build CMake
run: cmake --build build