Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
id: cache-depends
uses: actions/cache@v2
with:
path: protobuf-3.15.8
path: protobuf-3.20.1
key: ${{ runner.os }}-v1-depends

- name: Download ProtoBuf
if: steps.cache-depends.outputs.cache-hit != 'true'
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
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protobuf-all-3.20.1.tar.gz && tar xzvf protobuf-all-3.20.1.tar.gz

- name: Build ProtoBuf
if: steps.cache-depends.outputs.cache-hit != 'true'
working-directory: protobuf-3.15.8
working-directory: protobuf-3.20.1
run: ./configure DIST_LANG=cpp --prefix=/usr && make

- name: Install ProtoBuf
working-directory: protobuf-3.15.8
working-directory: protobuf-3.20.1
run: sudo make install && sudo ldconfig

- name: Install proto2cpp
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Prepare Documentation Build
run: |
sed -i 's/PROJECT_NUMBER\s*= @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@/PROJECT_NUMBER = master (${{ steps.get_version.outputs.VERSION }})/g' doxygen_config.cmake.in
echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.15.8/* */proto2cpp/*" >> doxygen_config.cmake.in
echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.20.1/* */proto2cpp/* */flatbuffers/*" >> doxygen_config.cmake.in
echo "GENERATE_TREEVIEW = YES" >> doxygen_config.cmake.in

- name: Configure C++ Build
Expand All @@ -74,7 +74,7 @@ jobs:
run: cmake --build . --config Release -j 4

- name: Build Python
run: python setup.py build && python setup.py sdist
run: python setup.py build && python setup.py sdist

- name: Install Python
run: python -m pip install .
Expand Down Expand Up @@ -120,20 +120,20 @@ jobs:
id: cache-depends
uses: actions/cache@v2
with:
path: protobuf-3.15.8
path: protobuf-3.20.1
key: ${{ runner.os }}-v1-depends

- name: Download ProtoBuf
if: steps.cache-depends.outputs.cache-hit != 'true'
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
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protobuf-all-3.20.1.tar.gz && tar xzvf protobuf-all-3.20.1.tar.gz

- name: Build ProtoBuf
if: steps.cache-depends.outputs.cache-hit != 'true'
working-directory: protobuf-3.15.8
working-directory: protobuf-3.20.1
run: ./configure DIST_LANG=cpp --prefix=/usr && make

- name: Install ProtoBuf
working-directory: protobuf-3.15.8
working-directory: protobuf-3.20.1
run: sudo make install && sudo ldconfig

- name: Prepare C++ Build
Expand All @@ -153,7 +153,7 @@ jobs:
run: cmake --build . --config Release -j 4

- name: Build Python
run: python setup.py build && python setup.py sdist
run: python setup.py build && python setup.py sdist

- name: Install Python
run: python -m pip install .
Expand Down