@@ -10,58 +10,59 @@ jobs:
1010 triplet : x64-windows
1111 runs-on : ${{ matrix.os }}
1212 env :
13- VCPKG_DEFAULT_TRIPLET : ${{ matrix.triplet }}
13+ VCPKG_DEFAULT_TRIPLET : ${{ matrix.triplet }}-release
14+ VCPKG_TARGET_TRIPLET : ${{ matrix.triplet }}-release
1415 VCPKG_INSTALLED_DIR : ${{ github.workspace }}/vcpkg_installed/
1516 DEPS_DIR : ${{ github.workspace }}/vcpkg_installed/${{ matrix.triplet }}
1617 INST_DIR : ${{ github.workspace }}/install-prefix
1718 steps :
1819 - name : Checkout
19- uses : actions/checkout@v2
20+ uses : actions/checkout@v4
2021 with :
2122 submodules : " recursive"
2223
2324 - name : run-vcpkg
24- uses : lukka/run-vcpkg@v10
25+ uses : lukka/run-vcpkg@v11
2526 with :
2627 vcpkgJsonGlob : " ./vcpkg.json"
2728 runVcpkgInstall : true
2829
2930 - name : Setup MSBuild
30- uses : microsoft/setup-msbuild@v1
31+ uses : microsoft/setup-msbuild@v2
3132
3233 - name : Obtain and run CMake
3334 uses : threeal/cmake-action@v1.3.0
3435 with :
3536 source-dir : " ."
3637 build-dir : " build"
3738 generator : " Visual Studio 17 2022"
38- options : CMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake CMAKE_INSTALL_PREFIX="${{ env.INST_DIR }}"
39+ options : CMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake CMAKE_INSTALL_PREFIX="${{ env.INST_DIR }}" VCPKG_TARGET_TRIPLET="${{ env.VCPKG_TARGET_TRIPLET }}"
3940
4041 - name : Build DLL
4142 run : " cmake --build build --config Release -t INSTALL"
4243
4344 - name : Archive DLL
44- uses : actions/upload-artifact@v3
45+ uses : actions/upload-artifact@v4
4546 with :
4647 name : SimpleGraphic-${{ matrix.triplet }}.dll
4748 path : " ${{ env.INST_DIR }}/SimpleGraphic.dll"
4849
4950 - name : Archive DLL symbols
50- uses : actions/upload-artifact@v3
51+ uses : actions/upload-artifact@v4
5152 with :
5253 name : SimpleGraphic-${{ matrix.triplet }}.pdb
5354 path : " ${{ github.workspace }}/build/Release/SimpleGraphic.pdb"
5455
5556 - name : Archive dependency DLLs
56- uses : actions/upload-artifact@v3
57+ uses : actions/upload-artifact@v4
5758 with :
5859 name : SimpleGraphic-${{ matrix.triplet }}-deps.dll
5960 path : |
6061 ${{ env.INST_DIR }}/*.dll
6162 !${{ env.INST_DIR }}/SimpleGraphic.dll
6263
6364 - name : Archive dependency DLL symbols
64- uses : actions/upload-artifact@v3
65+ uses : actions/upload-artifact@v4
6566 with :
6667 name : SimpleGraphic-${{ matrix.triplet }}-deps.pdb
6768 path : |
0 commit comments