@@ -32,20 +32,20 @@ jobs:
3232 id : cache-depends
3333 uses : actions/cache@v2
3434 with :
35- path : protobuf-3.11.3
35+ path : protobuf-3.15.8
3636 key : ${{ runner.os }}-v1-depends
3737
3838 - name : Download ProtoBuf
3939 if : steps.cache-depends.outputs.cache-hit != 'true'
40- 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
40+ run : curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8 /protobuf-all-3.15.8 .tar.gz && tar xzvf protobuf-all-3.15.8 .tar.gz
4141
4242 - name : Build ProtoBuf
4343 if : steps.cache-depends.outputs.cache-hit != 'true'
44- working-directory : protobuf-3.11.3
44+ working-directory : protobuf-3.15.8
4545 run : ./configure DIST_LANG=cpp --prefix=/usr && make
4646
4747 - name : Install ProtoBuf
48- working-directory : protobuf-3.11.3
48+ working-directory : protobuf-3.15.8
4949 run : sudo make install && sudo ldconfig
5050
5151 - name : Install proto2cpp
5757 - name : Prepare Documentation Bukd
5858 run : |
5959 sed -i 's/@VERSION_PATCH@/@VERSION_PATCH@_GitHub_MasterBranch/g' doxygen_config.cmake.in
60- echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.11.3 /* */proto2cpp/*" >> doxygen_config.cmake.in
60+ echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.15.8 /* */proto2cpp/*" >> doxygen_config.cmake.in
6161 echo "GENERATE_TREEVIEW = YES" >> doxygen_config.cmake.in
6262
6363 - name : Configure C++ Build
@@ -78,12 +78,20 @@ jobs:
7878 run : python -m unittest discover tests
7979
8080 - name : Archive Documentation
81+ if : ${{ github.event_name == 'pull_request' }}
8182 uses : actions/upload-artifact@v2
8283 with :
8384 name : linux64-doc
8485 path : doc/html
8586 if-no-files-found : error
8687
88+ - name : deploy to gh-pages if push to master branch
89+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
90+ uses : peaceiris/actions-gh-pages@v3
91+ with :
92+ github_token : ${{ secrets.GITHUB_TOKEN }}
93+ publish_dir : ./doc/html
94+
8795 build-proto3-linux64 :
8896 name : Build Proto3 Linux 64
8997
@@ -107,20 +115,20 @@ jobs:
107115 id : cache-depends
108116 uses : actions/cache@v2
109117 with :
110- path : protobuf-3.11.3
118+ path : protobuf-3.15.8
111119 key : ${{ runner.os }}-v1-depends
112120
113121 - name : Download ProtoBuf
114122 if : steps.cache-depends.outputs.cache-hit != 'true'
115- 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
123+ run : curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8 /protobuf-all-3.15.8 .tar.gz && tar xzvf protobuf-all-3.15.8 .tar.gz
116124
117125 - name : Build ProtoBuf
118126 if : steps.cache-depends.outputs.cache-hit != 'true'
119- working-directory : protobuf-3.11.3
127+ working-directory : protobuf-3.15.8
120128 run : ./configure DIST_LANG=cpp --prefix=/usr && make
121129
122130 - name : Install ProtoBuf
123- working-directory : protobuf-3.11.3
131+ working-directory : protobuf-3.15.8
124132 run : sudo make install && sudo ldconfig
125133
126134 - name : Prepare C++ Build
0 commit comments