test for run-vcpkg@dev/vcpkgconfjson-support #188
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
# Copyright (c) 2019-2020-2021-2022 Luca Cappa | |
# Released under the term specified in file LICENSE.txt | |
# SPDX short identifier: MIT | |
# | |
# Setup vcpkg (which is stored in a Git submodule), then run CMake with CMakePreset.json and vcpkg's toolchain file, | |
# to automatically run vcpkg to install dependencies described by the vcpkg.json manifest file, and build the sources | |
# with Ninja. | |
name: hosted-ninja-toolchain-vcpkg_submod-cacheoff | |
on: [push, workflow_dispatch] | |
jobs: | |
job: | |
name: ${{ matrix.os }}-${{ github.workflow }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: lukka/get-cmake@latest | |
- name: dir | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Setup vcpkg | |
uses: lukka/run-vcpkg@dev/vcpkgconfjson-support | |
id: runvcpkg | |
with: | |
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json' | |
- name: List $RUNNER_WORKSPACE before build | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Prints output of run-vcpkg's action. | |
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' " | |
- name: Run CMake+vcpkg+Ninja | |
uses: lukka/run-cmake@v10 | |
id: runcmake | |
with: | |
cmakeListsTxtPath: '${{ github.workspace }}/cmakepresets/CMakeLists.txt' | |
configurePreset: 'ninja-toolchain' | |
buildPreset: 'ninja-toolchain' | |
env: | |
TOOLCHAINFILE: ${{ env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake | |
- name: List $RUNNER_WORKSPACE after build | |
run: find $RUNNER_WORKSPACE | |
shell: bash |