Skip to content

Commit

Permalink
yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
rizesql committed Apr 17, 2024
1 parent 4d718da commit 6377f48
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 28 deletions.
41 changes: 23 additions & 18 deletions .github/actions/configure-cmake/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,30 @@ runs:
key: ${{ matrix.os }}-${{ matrix.cxx }}-ninja-cache-${{ hashFiles('CMakeLists.txt') }}
restore-keys: ${{ matrix.os }}-${{ matrix.cxx }}-ninja-cache-

- name: Install Protobuf (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libprotobuf-dev libprotoc-dev protobuf-compiler
shell: bash

- name: Install Protobuf (macOS)
if: runner.os == 'macOS'
run: |
brew install protobuf
shell: bash
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.x"

- name: Install Protobuf (Windows)
if: runner.os == 'Windows'
run: |
choco install protoc
shell: bash
# - name: Install Protobuf (Linux)
# if: runner.os == 'Linux'
# run: |
# sudo apt-get update
# sudo apt-get install -y --no-install-recommends \
# libprotobuf-dev libprotoc-dev protobuf-compiler
# shell: bash
#
# - name: Install Protobuf (macOS)
# if: runner.os == 'macOS'
# run: |
# brew install protobuf
# shell: bash
#
# - name: Install Protobuf (Windows)
# if: runner.os == 'Windows'
# run: |
# choco install protoc
# shell: bash

- run: |
CMAKE_GENERATOR=${{ matrix.cmake_generator }} cmake -S ${GITHUB_WORKSPACE} -B ${{ env.BUILD_DIR }} \
Expand Down
30 changes: 20 additions & 10 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ jobs:
sudo apt-get update
sudo apt-get install --no-install-recommends cppcheck
- name: Install protobuf
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libprotobuf-dev libprotoc-dev protobuf-compiler
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.x"

# - name: Install protobuf
# run: |
# sudo apt-get update
# sudo apt-get install -y --no-install-recommends \
# libprotobuf-dev libprotoc-dev protobuf-compiler

# The flag CMAKE_EXPORT_COMPILE_COMMANDS generates compile_commands.json
# which is used by cppcheck and clang-tidy
Expand Down Expand Up @@ -97,11 +102,16 @@ jobs:
sudo apt-get update
sudo apt-get install --no-install-recommends clang-tidy-17 libc++-17-dev libc++abi-17-dev
- name: Install protobuf
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libprotobuf-dev libprotoc-dev protobuf-compiler=3.15.0
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.x"

# - name: Install protobuf
# run: |
# sudo apt-get update
# sudo apt-get install -y --no-install-recommends \
# libprotobuf-dev libprotoc-dev protobuf-compiler=3.15.0

- name: Configure CMake
uses: ./.github/actions/configure-cmake
Expand Down

0 comments on commit 6377f48

Please sign in to comment.