From 2b3ce6dd80a496b43e97263e53dd365fabb0d047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MACHIZAUD=20Andr=C3=A9a?= Date: Fri, 17 Jun 2022 22:16:11 +0200 Subject: [PATCH] Test both way to pull vcpkg dependencies in CI --- .github/workflows/msvc.yml | 52 +++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index 89aca044..167ba042 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build: + build-with-vcpkg-integration: runs-on: windows-2022 @@ -53,3 +53,53 @@ jobs: - uses: actions/upload-artifact@v2 with: path: Tracy.7z + + build-without-vcpkg-integration: + + runs-on: windows-2022 + + env: + VCPKG_ROOT: '' + + steps: + - uses: actions/checkout@v2 + - uses: microsoft/setup-msbuild@v1.0.2 + - name: Install vcpkg dependencies + run: vcpkg/install_vcpkg_dependencies.bat + - name: Profiler GUI Debug + run: msbuild .\profiler\build\win32\Tracy.vcxproj /property:Configuration=Debug /property:Platform=x64 + - name: Profiler GUI Release + run: msbuild .\profiler\build\win32\Tracy.vcxproj /property:Configuration=Release /property:Platform=x64 + - name: Update utility Debug + run: msbuild .\update\build\win32\update.vcxproj /property:Configuration=Debug /property:Platform=x64 + - name: Update utility Release + run: msbuild .\update\build\win32\update.vcxproj /property:Configuration=Release /property:Platform=x64 + - name: Capture utility Debug + run: msbuild .\capture\build\win32\capture.vcxproj /property:Configuration=Debug /property:Platform=x64 + - name: Capture utility Release + run: msbuild .\capture\build\win32\capture.vcxproj /property:Configuration=Release /property:Platform=x64 + - name: Csvexport utility Debug + run: msbuild .\csvexport\build\win32\csvexport.vcxproj /property:Configuration=Debug /property:Platform=x64 + - name: Csvexport utility Release + run: msbuild .\csvexport\build\win32\csvexport.vcxproj /property:Configuration=Release /property:Platform=x64 + - name: Import-chrome utility Debug + run: msbuild .\import-chrome\build\win32\import-chrome.vcxproj /property:Configuration=Debug /property:Platform=x64 + - name: Import-chrome utility Release + run: msbuild .\import-chrome\build\win32\import-chrome.vcxproj /property:Configuration=Release /property:Platform=x64 + - name: Library + run: msbuild .\library\win32\TracyProfiler.vcxproj /property:Configuration=Release /property:Platform=x64 + - name: Package binaries + run: | + mkdir bin + mkdir bin\dev + copy profiler\build\win32\x64\Release\Tracy.exe bin + copy update\build\win32\x64\Release\update.exe bin + copy capture\build\win32\x64\Release\capture.exe bin + copy import-chrome\build\win32\x64\Release\import-chrome.exe bin + copy csvexport\build\win32\x64\Release\csvexport.exe bin + copy library\win32\x64\Release\TracyProfiler.dll bin\dev + copy library\win32\x64\Release\TracyProfiler.lib bin\dev + 7z a Tracy.7z bin + - uses: actions/upload-artifact@v2 + with: + path: Tracy.7z