Browse Source

remove env setting

Michael Yang 1 year ago
parent
commit
0610126049
1 changed files with 0 additions and 14 deletions
  1. 0 14
      .github/workflows/test.yaml

+ 0 - 14
.github/workflows/test.yaml

@@ -23,20 +23,6 @@ jobs:
         with:
         with:
           go-version: '1.21'
           go-version: '1.21'
           cache: true
           cache: true
-      - if: ${{ startsWith(matrix.os, 'windows-') }}
-        shell: pwsh
-        run: |
-          $path = vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
-          if ($path) {
-              $path = join-path $path 'Common7\Tools\vsdevcmd.bat'
-              if (test-path $path) {
-                  cmd /s /c """$path"" $args && set" | where { $_ -match '(\w+)=(.*)' } | foreach {
-                      echo "$($Matches[1])=$($Matches[2])" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
-                  }
-              }
-          }
-
-          echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
       - run: go get ./...
       - run: go get ./...
       - run: go generate -x ./...
       - run: go generate -x ./...
       - uses: actions/upload-artifact@v4
       - uses: actions/upload-artifact@v4