ACTIONS: Use Abseil in MSVC workflow, to get backtraces in tests #33
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
name: windows cmake msvc | |
on: | |
[push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-2022 | |
env: | |
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/bincache | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: lukka/[email protected] | |
- name: Prepare vcpkg | |
id: prepare_vcpkg | |
shell: bash | |
run: | | |
mkdir -vp "${VCPKG_DEFAULT_BINARY_CACHE}" | |
cp -v "${GITHUB_WORKSPACE}"/.github/workflows/vcpkg.json "${GITHUB_WORKSPACE}"/ | |
cp -v "${GITHUB_WORKSPACE}"/.github/workflows/CMakePresets.json "${GITHUB_WORKSPACE}"/ | |
- name: Restore artifacts and set up vcpkg | |
uses: lukka/run-vcpkg@v11 | |
id: run_vcpkg | |
with: | |
vcpkgGitCommitId: accd79817981f1ce00c6a4164aecf2b2ac699823 | |
vcpkgJsonGlob: vcpkg.json | |
- name: Run CMake, with vcpkg stage, generate, build and test | |
uses: lukka/run-cmake@v10 | |
id: run_cmake | |
with: | |
configurePreset: ninja-multi-vcpkg | |
configurePresetAdditionalArgs: "['-DGTest_HAS_ABSEIL=ON']" | |
buildPreset: ninja-multi-vcpkg-debug | |
testPreset: ninja-multi-vcpkg-debug |