Handle modern CMake with vendored picotls #25
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Checkout picoquic | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: private-octopus/picoquic | |
| ref: master | |
| path: third_party/picoquic | |
| - name: Checkout picotls | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: private-octopus/picotls | |
| ref: master | |
| path: third_party/picotls | |
| submodules: recursive | |
| - name: Show toolchain | |
| run: | | |
| cmake --version | |
| c++ --version | |
| - name: Configure | |
| run: > | |
| cmake -S . -B build | |
| -DCMAKE_POLICY_VERSION_MINIMUM=3.5 | |
| -DOPENMOQ_PICOQUIC_SOURCE_DIR="${{ github.workspace }}/third_party/picoquic" | |
| -DOPENMOQ_PICOTLS_SOURCE_DIR="${{ github.workspace }}/third_party/picotls" | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure |