Vcpkg dependency installation fails on windows-2019 runner

I’m trying to install my dependencies with the following cmd:

      - name: Install vcpkg
        if: matrix.os == 'windows-2019' && steps.cache_win.outputs.cache-hit != 'true'
        run: |
          git clone https://github.com/microsoft/vcpkg ${{ env.VCPKG_DIR }}
          git -C ${{ env.VCPKG_DIR }} checkout ${{ env.VCPKG_REF }}
          echo.set(VCPKG_BUILD_TYPE release)>> ${{ env.VCPKG_DIR }}\triplets\x64-windows.cmake
          call ${{ env.VCPKG_DIR }}\bootstrap-vcpkg.bat
          ${{ env.VCPKG_DIR }}\vcpkg.exe version
        shell: cmd

      - name: Install Windows deps
        if: matrix.os == 'windows-2019' && steps.cache_win.outputs.cache-hit != 'true'
        run: |
          ${{ env.VCPKG_DIR }}\vcpkg.exe install --triplet x64-windows boost-algorithm boost-config boost-core boost-heap boost-lexical-cast boost-property-tree boost-variant boost-geometry boost-program-options curl protobuf zlib sqlite3 proj4 luajit libspatialite geos
        shell: cmd

where the env vars are:

      VCPKG_DIR: ${{ github.workspace }}\vcpkg
      VCPKG_REF: 'f4bd6423'

The error is in the dependency installation step (second one) with the dreaded -1073741819:

Run D:\a\valhalla-python\valhalla-python\vcpkg\vcpkg.exe install --triplet x64-windows boost-algorithm boost-config boost-core boost-heap boost-lexical-cast boost-property-tree boost-variant boost-geometry boost-program-options curl protobuf zlib sqlite3 proj4 luajit libspatialite geos
Computing installation plan...
Error: Process completed with exit code -1073741819.

For reference:

Anyone got an idea what the heck I’m doing wrong?

1 Like

btw, I know there’s an marketplace action to use vcpkg, but I don’t want to lock myself in that much for what is supposed to be really very basic commands

have you found any solutions? I am faced with the same issue

Looks to me like this has been fixed @nilsnolde, tried it just now :zap: