Skip to content

Slowly fixing up v5 API. #10

Slowly fixing up v5 API.

Slowly fixing up v5 API. #10

Workflow file for this run

name: CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
test:
name: Test (${{ matrix.os }}, ${{ matrix.build_type }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DPTK_BUILD_TESTS=ON
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}
- name: Run Tests
working-directory: build
run: ctest --output-on-failure -C ${{ matrix.build_type }}
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.os }}-${{ matrix.build_type }}
path: build/Testing/
- name: Upload Build Artifacts (for release)
if: github.event_name == 'pull_request' && github.base_ref == 'release'
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}-${{ matrix.build_type }}
path: |
build/lib/libprotocol_toolkit.a
build/include/protocol_toolkit.h