Browse Source

Windows: Use another way to get pdbstr and srctool for source indexing.

Miku AuahDark 1 year ago
parent
commit
72d6d8f64f
1 changed files with 14 additions and 13 deletions
  1. 14 13
      .github/workflows/main.yml

+ 14 - 13
.github/workflows/main.yml

@@ -202,25 +202,26 @@ jobs:
         echo nofiles=ignore>> "%GITHUB_OUTPUT%"
         echo nofiles=ignore>> "%GITHUB_OUTPUT%"
         echo moredef=-DLOVE_EXTRA_DLLS=%CD%\angle\libEGL.dll;%CD%\angle\libGLESv2.dll>> "%GITHUB_OUTPUT%"
         echo moredef=-DLOVE_EXTRA_DLLS=%CD%\angle\libEGL.dll;%CD%\angle\libGLESv2.dll>> "%GITHUB_OUTPUT%"
         exit /b 0
         exit /b 0
-    - name: Download Windows SDK Setup 10.0.20348
-      run: curl -Lo winsdksetup.exe https://go.microsoft.com/fwlink/?linkid=2164145
-    - name: Install Debugging Tools for Windows
-      id: windbg
+    - name: Download pdbstr
+      run: curl -Lfo pdbstr.nupkg https://www.nuget.org/api/v2/package/Microsoft.Debugging.Tools.PdbStr/20230731.1609.0
+    - name: Download srctool
+      run: curl -Lfo srctool.nupkg https://www.nuget.org/api/v2/package/Microsoft.Debugging.Tools.SrcTool/20230731.1609.0
+    - name: Extract Tools and Add to PATH
       run: |
       run: |
-        setlocal enabledelayedexpansion
-        start /WAIT %CD%\winsdksetup.exe /features OptionId.WindowsDesktopDebuggers /q /log %CD%\log.txt
-        echo ERRORLEVEL=!ERRORLEVEL! >> %GITHUB_OUTPUT%
-    - name: Print Debugging Tools Install Log
-      if: always()
-      run: |
-        type log.txt
-        exit /b ${{ steps.windbg.outputs.ERRORLEVEL }}
+        mkdir debugtools
+        cd debugtools
+        if errorlevel 1 exit /b 1
+        7z e srctool.nupkg content/amd64/srctool.exe
+        if errorlevel 1 exit /b 1
+        7z e pdbstr.nupkg content/amd64/pdbstr.exe
+        if errorlevel 1 exit /b 1
+        echo %CD%>>%GITHUB_PATH%
     - name: Setup Python 3.10
     - name: Setup Python 3.10
       uses: actions/setup-python@v5
       uses: actions/setup-python@v5
       with:
       with:
         python-version: "3.10"
         python-version: "3.10"
     - name: Download source_index.py
     - name: Download source_index.py
-      run: curl -Lo source_index.py https://gist.github.com/MikuAuahDark/d9c099f5714e09a765496471c2827a55/raw/df34956052035f3473c5f01861dfb53930d06843/source_index.py
+      run: curl -Lfo source_index.py https://gist.github.com/MikuAuahDark/d9c099f5714e09a765496471c2827a55/raw/df34956052035f3473c5f01861dfb53930d06843/source_index.py
     - name: Clone Megasource
     - name: Clone Megasource
       uses: actions/checkout@v4
       uses: actions/checkout@v4
       with:
       with: