chore(deps): update actions/checkout action to v6.0.1 (#107) #257
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: Build and Test (vcpkg) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build and Test (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: windows-latest | |
| triplet: x64-windows-release | |
| - os: macos-latest | |
| triplet: arm64-osx-release | |
| - os: ubuntu-latest | |
| triplet: x64-linux-release | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| env: | |
| VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }} | |
| VCPKG_DEFAULT_HOST_TRIPLET: ${{ matrix.triplet }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Set up cmake and ninja | |
| uses: lukka/get-cmake@628dd514bed37cb0a609e84a6186cbbaa2fc0140 # v4.1.2 | |
| - name: Set up vcpkg | |
| uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 | |
| - name: Build and test | |
| run: | | |
| cmake --preset debug-vcpkg -DBUILD_DOCS=OFF | |
| cmake --build --preset debug-vcpkg | |
| ctest --preset debug-vcpkg | |
| - name: Install | |
| run: sudo cmake --install build-debug-vcpkg | |
| if: runner.os != 'Windows' | |
| - name: Install (Windows) | |
| run: cmake --install build-debug-vcpkg --config Debug | |
| if: runner.os == 'Windows' |