1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 12:39:41 +00:00

Merge branch 'turns-out-we-do-need-python' into 'master'

Fix storing symbols to symbol server

See merge request OpenMW/openmw!3521
This commit is contained in:
AnyOldName3 2023-10-25 22:12:35 +00:00
commit 416e8337d0
2 changed files with 20 additions and 0 deletions

View file

@ -531,6 +531,7 @@ macOS13_Xcode14_arm64:
- choco install ccache -y
- choco install vswhere -y
- choco install ninja -y
- choco install python -y
- choco install awscli -y
- refreshenv
- |
@ -652,6 +653,7 @@ macOS13_Xcode14_arm64:
- choco install 7zip -y
- choco install ccache -y
- choco install vswhere -y
- choco install python -y
- choco install awscli -y
- refreshenv
- |

View file

@ -1,3 +1,5 @@
$ErrorActionPreference = "Stop"
if (-Not (Test-Path CMakeCache.txt))
{
Write-Error "This script must be run from the build directory."
@ -8,6 +10,9 @@ if (-Not (Test-Path .cmake\api\v1\reply\index-*.json) -Or -Not ((Get-Content -Ra
Write-Output "Running CMake query..."
New-Item -Type File -Force .cmake\api\v1\query\codemodel-v2
cmake .
if ($LASTEXITCODE -ne 0) {
Write-Error "Command exited with code $LASTEXITCODE"
}
Write-Output "Done."
}
@ -45,13 +50,26 @@ finally
if (-not (Test-Path symstore-venv))
{
python -m venv symstore-venv
if ($LASTEXITCODE -ne 0) {
Write-Error "Command exited with code $LASTEXITCODE"
}
}
$symstoreVersion = "0.3.4"
if (-not (Test-Path symstore-venv\Scripts\symstore.exe) -or -not ((symstore-venv\Scripts\pip show symstore | Select-String '(?<=Version: ).*').Matches.Value -eq $symstoreVersion))
{
symstore-venv\Scripts\pip install symstore==$symstoreVersion
if ($LASTEXITCODE -ne 0) {
Write-Error "Command exited with code $LASTEXITCODE"
}
}
$artifacts = $artifacts | Where-Object { Test-Path $_ }
Write-Output "Storing symbols..."
symstore-venv\Scripts\symstore --compress --skip-published .\SymStore @artifacts
if ($LASTEXITCODE -ne 0) {
Write-Error "Command exited with code $LASTEXITCODE"
}
Write-Output "Done."