Skip to content

expose vcpkg root

expose vcpkg root #5

Workflow file for this run

on:
push:
branches:
- master
- docs
paths:
- '**.yml'
- 'include/**'
- 'src/**'
pull_request:
branches:
- master
paths:
- '**.yml'
- 'include/**'
- 'src/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish-doc:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-20.04
vcpkg_triplet: x64-linux-release
- os: macos-11
vcpkg_triplet: x64-osx-release
- os: windows-2019
vcpkg_triplet: x64-windows-release
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install latest CMake and Ninja
uses: lukka/[email protected]
- name: vcpkg build
uses: johnwason/vcpkg-action@v5
id: vcpkg
with:
pkgs: cli11
triplet: ${{ matrix.config.vcpkg_triplet }}
cache-key: ${{ matrix.config.os }}
token: ${{ github.token }}
- name: Build with CMake
run: |
echo ${{ env.VCPKG_ROOT }}
cmake -S . -B build/ninja/ -GNinja
cmake -S . -B build/${{ runner.os }}/