diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1b3d1b..843178c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: uses: actions/checkout@v4 with: repository: cppfw/myci - ref: latest + ref: main path: myci - name: add myci to PATH uses: myci-actions/export-env-var-powershell@main @@ -122,6 +122,20 @@ jobs: run: | cd build/vcpkg/test ./${{ matrix.config }}/test.exe + - name: deploy vcpkg port + if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.arch == 'x64' && matrix.config == 'Release' }} + shell: bash + run: | + # disable autocrlf for the vcpkg-repo clone (the default on windows runners + # would convert LF files to CRLF, which the vcpkg manifest checker rejects) + git config --global core.autocrlf false + # the deploy script invokes vcpkg directly, so add its root to PATH + export PATH="$VCPKG_ROOT:$PATH" + # bash is needed explicitly here (not just shell: bash): + # Git for Windows does not preserve the executable bit on checkout + # (core.filemode=false), so the script must be invoked via 'bash