Skip to content

test run-cmake and run-vcpkg at dev/node20-update-deps #161

test run-cmake and run-vcpkg at dev/node20-update-deps

test run-cmake and run-vcpkg at dev/node20-update-deps #161

# Copyright (c) 2019-2020-2021-2022 Luca Cappa
# Released under the term specified in file LICENSE.txt
# SPDX short identifier: MIT
name: context-dumps
on: [push, workflow_dispatch]
jobs:
job:
env:
vcpkgGitCommitId: 'c9f906558f9bb12ee9811d6edc98ec9255c6cda5'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: windows-latest
triplet: x64-windows
- os: ubuntu-latest
triplet: x64-linux
- os: macos-latest
triplet: x64-osx
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: Dump environment variables
run: env
shell: bash
- name: dir
run: find ${{ runner.workspace }}
if: "!contains( runner.os, 'windows')"
- name: dir
run: gci -recurse ${{ runner.workspace }}
if: contains( runner.os, 'windows')
- uses: lukka/get-cmake@latest
- name: Setup vcpkg
uses: lukka/run-vcpkg@dev/node20-update-deps
id: runvcpkg
with:
vcpkgDirectory: ${{ github.workspace }}/../b/vcpkg
vcpkgGitCommitId: ${{ env.vcpkgGitCommitId }}
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json'
- name: Run CMake
uses: lukka/run-cmake@dev/node20-update-deps
id: runcmake
with:
cmakeListsTxtPath: '${{ github.workspace }}/cmakepresets/CMakeLists.txt'
configurePreset: ninja-multi-vcpkg
buildPreset: ninja-multi-vcpkg
- name: Prints output of run-vcpkg's task
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET }}' "