Skip to content

Commit fbbcc9e

Browse files
pmaiHabedank Clemens
authored andcommitted
Initial GitHub Actions CPP ProtoBuf Build
Signed-off-by: Pierre R. Mai <pmai@pmsf.de> Signed-off-by: Habedank Clemens <qxs2704@europe.bmw.corp>
1 parent 13224ce commit fbbcc9e

File tree

2 files changed

+49
-161
lines changed

2 files changed

+49
-161
lines changed

.github/workflows/protobuf.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: ProtoBuf CI Builds
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ master ]
7+
8+
jobs:
9+
build-cpp-linux64:
10+
name: Build C++ Linux 64
11+
12+
runs-on: ubuntu-18.04
13+
14+
steps:
15+
- name: Checkout OSI
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: true
19+
20+
- name: Cache Dependencies
21+
id: cache-depends
22+
uses: actions/cache@v2
23+
with:
24+
path: protobuf-3.11.3
25+
key: ${{ runner.os }}-v1-depends
26+
27+
- name: Download ProtoBuf
28+
if: steps.cache-depends.outputs.cache-hit != 'true'
29+
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.11.3/protobuf-all-3.11.3.tar.gz && tar xzvf protobuf-all-3.11.3.tar.gz
30+
31+
- name: Build ProtoBuf
32+
if: steps.cache-depends.outputs.cache-hit != 'true'
33+
working-directory: protobuf-3.11.3
34+
run: ./configure DIST_LANG=cpp --prefix=/usr && make
35+
36+
- name: Install ProtoBuf
37+
working-directory: protobuf-3.11.3
38+
run: sudo make install && sudo ldconfig
39+
40+
- name: Prepare Build
41+
run: mkdir build
42+
43+
- name: Configure Build
44+
working-directory: build
45+
run: cmake ..
46+
47+
- name: Build
48+
working-directory: build
49+
run: cmake --build . --config Release -j 4

.travis.yml

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)