From 6c2a2e4a113a92c60f4a4d9c78771f4acdd68478 Mon Sep 17 00:00:00 2001 From: bbgan <2893129936@qq.com> Date: Sun, 5 May 2024 16:55:28 +0800 Subject: [PATCH] update workflow --- .github/workflows/linux-clang.yml | 7 +++++-- .github/workflows/linux-gcc.yml | 5 ++++- .github/workflows/mac.yml | 7 +++++-- .github/workflows/windows.yml | 5 ++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux-clang.yml b/.github/workflows/linux-clang.yml index d3056a27..38ba7d0a 100644 --- a/.github/workflows/linux-clang.yml +++ b/.github/workflows/linux-clang.yml @@ -17,9 +17,12 @@ jobs: steps: - name: check out uses: actions/checkout@v3 - + + - name: Install Protobuf and Dev Package + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev + - name: configure cmake - run: CXX=clang++ CC=clang cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} -DLINKLIBC++=ON + run: CXX=clang++ CC=clang cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} -DLINKLIBC++=ON -DHAS_PROTOBUF=ON - name: build project run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }} diff --git a/.github/workflows/linux-gcc.yml b/.github/workflows/linux-gcc.yml index 22bdd2f3..4b9db201 100644 --- a/.github/workflows/linux-gcc.yml +++ b/.github/workflows/linux-gcc.yml @@ -21,8 +21,11 @@ jobs: - name: checkout gcc version run: gcc --version + - name: Install Protobuf and Dev Package + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev + - name: configure cmake - run: CXX=g++ CC=gcc cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} + run: CXX=g++ CC=gcc cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DHAS_PROTOBUF=ON -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} - name: build project run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }} diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index e51340f9..9504bbae 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -18,9 +18,12 @@ jobs: steps: - name: check out uses: actions/checkout@v3 - + + - name: Install Protobuf and Dev Package + run: brew install protobuf + - name: configure cmake - run: CXX=clang++ CC=clang cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} + run: CXX=clang++ CC=clang cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DHAS_PROTOBUF=ON -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} - name: build project run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 21039968..ba32b4a2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -23,9 +23,12 @@ jobs: steps: - name: check out uses: actions/checkout@v3 + + - name: Install Protobuf with Chocolatey + run: choco install protoc - name: generate project - run: cmake -B ${{ github.workspace }}\build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -A${{ matrix.arch }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} + run: cmake -B ${{ github.workspace }}\build -DHAS_PROTOBUF=ON -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -A${{ matrix.arch }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} - name: build iguana run: cmake --build ${{ github.workspace }}\build --config ${{ matrix.mode }}