File tree Expand file tree Collapse file tree 2 files changed +49
-161
lines changed Expand file tree Collapse file tree 2 files changed +49
-161
lines changed Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments