try to fix non_owing_any_test_lib #171
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Windows | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- dev/** | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths-ignore: | |
- '**.md' | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
protoc: ["find"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: "**/cpm_modules" | |
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }} | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ github.workflow }} | |
- name: Setup Ninja | |
uses: wirekang/setup-ninja@v1 | |
with: | |
platform: win | |
tag: v1.12.1 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: "28.x" | |
- name: configure | |
shell: bash | |
run: | | |
cmake -GNinja -S . -B build -DHPP_PROTO_PROTOC=${{ matrix.protoc }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build.ninja | |
path: build/build.ninja | |
- name: build | |
shell: bash | |
run: cmake --build build --config Release -j4 | |
- name: test | |
shell: bash | |
run: | | |
cd build | |
ctest --build-config Release --output-on-failure |