test for run-vcpkg@dev/vcpkgconfjson-support #178
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 | |
name: hosted-dumplogs-cacheoff | |
on: [push, workflow_dispatch] | |
jobs: | |
vcpkg-fails: | |
name: ${{ matrix.os }}-${{ github.workflow }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- os: windows-latest | |
vcpkgCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6' | |
- os: ubuntu-latest | |
vcpkgCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6' | |
- os: macos-latest | |
vcpkgCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: dir | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Run vcpkg and dump its failure log | |
uses: lukka/run-vcpkg@dev/vcpkgconfjson-support | |
with: | |
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | |
vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' | |
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json' | |
continue-on-error: true | |
cmake-fails: | |
name: ${{ matrix.os }}-cmake-log-collection-validation | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- os: windows-latest | |
triplet: x64-windows | |
vcpkgCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6' | |
- os: ubuntu-latest | |
triplet: x64-linux | |
vcpkgCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6' | |
- os: macos-latest | |
triplet: x64-osx | |
vcpkgCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6' | |
env: | |
VCPKG_URL: https://github.com/microsoft/vcpkg.git/ | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: lukka/get-cmake@latest | |
- name: dir | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Setup vpkg | |
uses: lukka/run-vcpkg@dev/vcpkgconfjson-support | |
id: runvcpkg | |
with: | |
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | |
vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' | |
vcpkgGitURL: '${{ env.VCPKG_URL }}' | |
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json' | |
- name: Prints output of run-vcpkg's task | |
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' " | |
- name: Run CMake and dump its failure log | |
continue-on-error: true | |
uses: lukka/run-cmake@v10 | |
with: | |
cmakeListsTxtPath: '${{ github.workspace }}/cmakepresets/CMakeLists.txt' | |
configurePreset: ninja-multi-vcpkg | |
buildPreset: ninja-multi-vcpkg | |
- name: dir | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |