Skip to content

Commit

Permalink
Fixed CI VCRT Version
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Jun 10, 2024
1 parent 9ded928 commit 92c3606
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/OnPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,21 @@ jobs:
working-directory: ${{github.workspace}}/vcpkg
run: .\bootstrap-vcpkg.bat

- name: Initialize MSVC Environment Windows
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{runner.arch}}

- name: Install Packages MSVC
if: runner.os == 'Windows' && matrix.compiler == 'MSVC'
working-directory: ${{github.workspace}}/vcpkg
run: vcpkg install --x-manifest-root=../scripts/vcpkg-manifest --x-install-root=./installed --triplet=x64-windows
run: set PATH=%LIB%;%PATH% && vcpkg install --x-manifest-root=../scripts/vcpkg-manifest --x-install-root=./installed --triplet=x64-windows

- name: Install Packages MinGW
if: runner.os == 'Windows' && matrix.compiler == 'MinGW'
working-directory: ${{github.workspace}}/vcpkg
run: vcpkg install --x-manifest-root=../scripts/vcpkg-manifest --x-install-root=./installed --triplet=x64-mingw-dynamic
run: set PATH=%LIB%;%PATH% && vcpkg install --x-manifest-root=../scripts/vcpkg-manifest --x-install-root=./installed --triplet=x64-mingw-dynamic

- name: Archive vcpkg Logs
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 92c3606

Please sign in to comment.