debug patch vcpkg step's patch copy command #38
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
# run CMake build on Windows and Linux | |
name: CMake Build Multi-Platform | |
on: | |
push: | |
branches: [ "development", "main" ] | |
pull_request: | |
branches: [ "development" ] | |
env: | |
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
#CL_PATH: "\"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\bin\\Hostx64\\x64\"" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. | |
fail-fast: false | |
matrix: | |
include: | |
# Windows x64 Release | |
- os: windows-2022 | |
preset: x64-release | |
# Linux x64 Release | |
- os: ubuntu-22.04 | |
preset: linux-release | |
# MacOS x64 Release | |
- os: macos-11.0 | |
preset: macos-release | |
# Linux mingw x64 Release | |
- os: ubuntu-22.04 | |
preset: linux-mingw-w64-release | |
# Windows Python x64 Release | |
- os: windows-2022 | |
preset: python-x64-release | |
steps: | |
- uses: actions/checkout@v3 | |
# | |
# os != windows-2022 (i.e. Linux, MacOS) | |
# | |
- name: Install vcpkg | |
run: | | |
git clone --depth 1 https://github.com/Microsoft/vcpkg.git ${{env.VCPKG_ROOT}} | |
"${{env.VCPKG_ROOT}}/bootstrap-vcpkg.sh" | |
# (Windows comes w/ vcpkg installed as part of VS) | |
if: matrix.os != 'windows-2022' | |
- name: Install Ninja | |
uses: seanmiddleditch/gha-setup-ninja@master | |
if: matrix.os != 'windows-2022' | |
# | |
# preset == linux-mingw-w64-release | |
# | |
- name: Install APT Packages | |
uses: awalsh128/[email protected] | |
with: | |
packages: mingw-w64 | |
if: matrix.preset == 'linux-mingw-w64-release' | |
# | |
# os == windows-2022 | |
# | |
- name: Setup VC Tools | |
uses: ilammy/msvc-dev-cmd@v1 | |
if: matrix.os == 'windows-2022' | |
- name: Patch vcpkg | |
run: | | |
dir ${{env.VCPKG_ROOT}} | |
dir ${{env.VCPKG_ROOT}}\scripts | |
dir ${{env.VCPKG_ROOT}}\scripts\msys | |
mkdir ${{env.VCPKG_ROOT}}\scripts\msys | |
scripts/patch-vcpkg-install.ps1 | |
if: matrix.os == 'windows-2022' | |
# | |
# All platforms | |
# | |
- name: CMake Configure | |
run: cmake --preset ${{matrix.preset}} | |
- name: CMake Build | |
run: cmake --build --preset ${{matrix.preset}} | |
- name: CMake Test | |
run: ctest --preset ${{matrix.preset}}} |