Skip to content

Try searching for CMake in VS folder #13

Try searching for CMake in VS folder

Try searching for CMake in VS folder #13

name: Windows MSVC x64
on:
workflow_dispatch:
permissions:
contents: write
env:
VCPKG_FEATURE_FLAGS: dependencygraph
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-2025-vs2026
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Restore or setup vcpkg
uses: lukka/run-vcpkg@v11.5
with:
vcpkgGitCommitId: 'a62ce77d56ee07513b4b67de1ec2daeaebfae51a'
- name: Fetch test data
run: |
mkdir build-ninja-vcpkg-relwithdebinfo
Invoke-WebRequest -Uri "https://github.com/diasurgical/devilutionx-assets/releases/download/v2/spawn.mpq" -OutFile "build-ninja-vcpkg-relwithdebinfo/spawn.mpq" -Resume
- name: Get CMakePresets.json
run: cp Packaging/windows/CMakePresets.json .
- name: Look for VS version of CMake
run: "C:\Program Files\Microsoft Visual

Check failure on line 43 in .github/workflows/Windows_MSVC_x64.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Windows_MSVC_x64.yml

Invalid workflow file

You have an error in your yaml syntax on line 43
Studio\18\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --version
- name: Run CMake consuming CMakePresets.json and vcpkg.json by mean of vcpkg.
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja-vcpkg-relwithdebinfo'
buildPreset: 'ninja-vcpkg-relwithdebinfo'
testPreset: 'ninja-vcpkg-relwithdebinfo'
- name: Upload-Package
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v6
with:
name: devilutionx.exe
path: |
build-ninja-vcpkg-relwithdebinfo/devilutionx.exe
build-ninja-vcpkg-relwithdebinfo/bz2.dll
build-ninja-vcpkg-relwithdebinfo/fmt.dll
build-ninja-vcpkg-relwithdebinfo/libpng16.dll
build-ninja-vcpkg-relwithdebinfo/libsodium.dll
build-ninja-vcpkg-relwithdebinfo/SDL2.dll
build-ninja-vcpkg-relwithdebinfo/SDL2_image.dll
build-ninja-vcpkg-relwithdebinfo/zlib1.dll