Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbgan committed May 5, 2024
1 parent d316358 commit 6c2a2e4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/linux-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/linux-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 6c2a2e4

Please sign in to comment.