@@ -594,7 +594,7 @@ jobs:
594
594
${{ github.workspace }}/BinaryCache/1/**/*.pdb
595
595
596
596
-
uses :
microsoft/[email protected]
597
- if : ${{ needs.context.outputs.debug_info }}
597
+ if : false # ${{ needs.context.outputs.debug_info }}
598
598
with :
599
599
accountName : ${{ env.SYMBOL_SERVER_ACCOUNT }}
600
600
personalAccessToken : ${{ secrets.SYMBOL_SERVER_PAT }}
@@ -1996,10 +1996,84 @@ jobs:
1996
1996
${{ github.workspace }}/.build/release/swift-format.exe
1997
1997
${{ github.workspace }}/artifacts/swift-format.msi
1998
1998
1999
+ swift_inspect :
2000
+ runs-on : windows-latest
2001
+ needs : [context, installer]
2002
+
2003
+ steps :
2004
+ - uses : actions/download-artifact@v3
2005
+ with :
2006
+ name : installer-amd64
2007
+ path : ${{ github.workspace }}/tmp
2008
+
2009
+ # TODO(compnerd) can this be done via a re-usage workflow for swift-format?
2010
+
2011
+ # TODO(compnerd): migrate this to compnerd/gha-setup-swift after the work that @mangini is doing is completed
2012
+ - run : |
2013
+ function Update-EnvironmentVariables {
2014
+ foreach ($level in "Machine", "User") {
2015
+ [Environment]::GetEnvironmentVariables($level).GetEnumerator() | % {
2016
+ # For Path variables, append the new values, if they're not already in there
2017
+ if ($_.Name -Match 'Path$') {
2018
+ $_.Value = ($((Get-Content "Env:$($_.Name)") + ";$($_.Value)") -Split ';' | Select -Unique) -Join ';'
2019
+ }
2020
+ $_
2021
+ } | Set-Content -Path { "Env:$($_.Name)" }
2022
+ }
2023
+ }
2024
+ try {
2025
+ Write-Host "Starting Install installer.exe..."
2026
+ $Process = Start-Process -FilePath ${{ github.workspace }}/tmp/installer.exe -ArgumentList ("-q") -Wait -PassThru
2027
+ $ExitCode = $Process.ExitCode
2028
+ if ($ExitCode -eq 0 -or $ExitCode -eq 3010) {
2029
+ Write-Host "Installation successful"
2030
+ } else {
2031
+ Write-Host "non-zero exit code returned by the installation process: $ExitCode"
2032
+ exit $ExitCode
2033
+ }
2034
+ } catch {
2035
+ Write-Host "Failed to install: $($_.Exception.Message)"
2036
+ exit 1
2037
+ }
2038
+ Update-EnvironmentVariables
2039
+ # Reset Path and environment
2040
+ echo "$env:Path" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
2041
+ Get-ChildItem Env: | % { echo "$($_.Name)=$($_.Value)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append }
2042
+
2043
+ -
uses :
microsoft/[email protected]
2044
+
2045
+ - uses : actions/checkout@v3
2046
+ with :
2047
+ repository : apple/swift
2048
+ ref : ${{ needs.context.outputs.swift_revision }}
2049
+ path : ${{ github.workspace }}/SourceCache/swift
2050
+
2051
+ - run : |
2052
+ swift build -c release -Xswiftc -gnone -Xcc -I"${env:SDKROOT}"\usr\include\swift\SwiftRemoteMirror -Xlinker ${env:SDKROOT}\usr\lib\swift\windows\x86_64\swiftRemoteMirror.lib
2053
+ New-Item -ItemType Directory -Path ${{ github.workspace }}\build
2054
+ Copy-Item ${{ github.workspace }}\SourceCache\swift\tools\swift-inspect\.build\release\swift-inspect.exe -destination ${{ github.workspace }}\build\
2055
+ working-directory: ${{ github.workspace }}\SourceCache\swift\tools\swift-inspect
2056
+
2057
+ - uses : actions/checkout@v3
2058
+ with :
2059
+ ref : ${{ vars.GITHUB_REF_NAME }}
2060
+ repository : ${{ vars.GITHUB_REPOSITORY }}
2061
+ path : ${{ github.workspace }}/SourceCache/${{ vars.GITHUB_REPOSITORY }}
2062
+
2063
+ - name : Package
2064
+ run : |
2065
+ msbuild -nologo -restore -p:Configuration=Release -p:RunWixToolsOutOfProc=true -p:OutputPath=${{ github.workspace }}\artifacts -p:ProductVersion=5.8 -p:SWIFT_INSPECT_BUILD=${{ github.workspace }}\build ${{ github.workspace }}\SourceCache\${{ vars.GITHUB_REPOSITORY }}\installer-scripts\swift-inspect.wixproj
2066
+
2067
+ - uses : actions/upload-artifact@v2
2068
+ with :
2069
+ name : swift-inspect
2070
+ path : |
2071
+ ${{ github.workspace }}/build/swift-inspect.exe
2072
+ ${{ github.workspace }}/artifacts/swift-inspect.msi
2073
+
1999
2074
snapshot :
2000
2075
runs-on : ubuntu-latest
2001
- needs : [context, swift_format]
2002
-
2076
+ needs : [context, smoke_test, swift_format, swift_inspect]
2003
2077
steps :
2004
2078
- uses : actions/checkout@v3
2005
2079
with :
@@ -2020,7 +2094,7 @@ jobs:
2020
2094
2021
2095
release :
2022
2096
runs-on : ubuntu-latest
2023
- needs : [smoke_test, swift_format]
2097
+ needs : [smoke_test, swift_format, swift_inspect ]
2024
2098
2025
2099
steps :
2026
2100
- uses : actions/download-artifact@v3
0 commit comments