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
17 changes: 13 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: '0 2 * * 5' # Every Friday at 2am

permissions:
contents: read

jobs:
build:
name: Build (${{ matrix.os }}, bundled ${{ matrix.bundled_protobuf }}, ${{ matrix.build_type }})
Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:
bundled_protobuf: 'OFF'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3

- name: Install Deps
run: |
Expand Down Expand Up @@ -70,8 +73,10 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
env:
BUILD_OUTPUT_DIR: ${{ steps.strings.outputs.build-output-dir }}
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B "$BUILD_OUTPUT_DIR"
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_CXX_FLAGS='-Werror'
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
Expand All @@ -82,7 +87,11 @@ jobs:
-S ${{ github.workspace }}

- name: Build
run: ninja -C ${{ steps.strings.outputs.build-output-dir }}
env:
BUILD_OUTPUT_DIR: ${{ steps.strings.outputs.build-output-dir }}
run: ninja -C "$BUILD_OUTPUT_DIR"

- name: Test
run: ninja -C ${{ steps.strings.outputs.build-output-dir }} check
env:
BUILD_OUTPUT_DIR: ${{ steps.strings.outputs.build-output-dir }}
run: ninja -C "$BUILD_OUTPUT_DIR" check
Loading