File tree Expand file tree Collapse file tree 4 files changed +39
-3
lines changed
Expand file tree Collapse file tree 4 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 2626 - name : Install PowerShell
2727 run : |
2828 $path = Split-Path (Get-Command codeql).Source
29- ./powershell/build.ps1 $path
29+ ./powershell/build-win64 .ps1 $path
3030 - name : Run QL tests
3131 run : |
3232 codeql test run --threads=0 powershell/ql/test
Original file line number Diff line number Diff line change 1+ param (
2+ [Parameter (Mandatory = $true )][string ]$cliFolder
3+ )
4+
5+ $toolsLinux64Folder = Join-Path (Join-Path (Join-Path $cliFolder " powershell" ) " tools" ) " linux64"
6+ dotnet publish (Join-Path " $PSScriptRoot /extractor" " powershell.sln" | Resolve-Path ) - o $toolsLinux64Folder - r linux- x64
7+ if ($LASTEXITCODE -ne 0 ) {
8+ Write-Host " Build failed"
9+ exit 1
10+ }
11+
12+ $powershellFolder = Join-Path - Path $cliFolder - ChildPath " powershell"
13+ Copy-Item - Path " $PSScriptRoot /codeql-extractor.yml" - Destination $powershellFolder - Force
14+ Copy-Item - Path " $PSScriptRoot /downgrades" - Destination $powershellFolder - Recurse - Force
15+ $qlLibFolder = Join-Path - Path " $PSScriptRoot /ql" - ChildPath " lib"
16+ Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme" ) - Destination $powershellFolder - Force
17+ Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme.stats" ) - Destination $powershellFolder - Force
18+ Copy-Item - Path " $PSScriptRoot /tools" - Destination $powershellFolder - Recurse - Force
Original file line number Diff line number Diff line change 1+ param (
2+ [Parameter (Mandatory = $true )][string ]$cliFolder
3+ )
4+
5+ $toolsOsx64Folder = Join-Path (Join-Path (Join-Path $cliFolder " powershell" ) " tools" ) " osx64"
6+ dotnet publish (Join-Path " $PSScriptRoot /extractor" " powershell.sln" | Resolve-Path ) - o $toolsOsx64Folder - r osx- x64
7+ if ($LASTEXITCODE -ne 0 ) {
8+ Write-Host " Build failed"
9+ exit 1
10+ }
11+
12+ $powershellFolder = Join-Path - Path $cliFolder - ChildPath " powershell"
13+ Copy-Item - Path " $PSScriptRoot /codeql-extractor.yml" - Destination $powershellFolder - Force
14+ Copy-Item - Path " $PSScriptRoot /downgrades" - Destination $powershellFolder - Recurse - Force
15+ $qlLibFolder = Join-Path - Path " $PSScriptRoot /ql" - ChildPath " lib"
16+ Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme" ) - Destination $powershellFolder - Force
17+ Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme.stats" ) - Destination $powershellFolder - Force
18+ Copy-Item - Path " $PSScriptRoot /tools" - Destination $powershellFolder - Recurse - Force
Original file line number Diff line number Diff line change 33)
44
55$toolsWin64Folder = Join-Path (Join-Path (Join-Path $cliFolder " powershell" ) " tools" ) " win64"
6- dotnet publish (Join-Path " $PSScriptRoot /extractor" " powershell.sln" | Resolve-Path ) - o $toolsWin64Folder
6+ dotnet publish (Join-Path " $PSScriptRoot /extractor" " powershell.sln" | Resolve-Path ) - o $toolsWin64Folder - r win - x64
77if ($LASTEXITCODE -ne 0 ) {
88 Write-Host " Build failed"
99 exit 1
@@ -15,4 +15,4 @@ Copy-Item -Path "$PSScriptRoot/downgrades" -Destination $powershellFolder -Recur
1515$qlLibFolder = Join-Path - Path " $PSScriptRoot /ql" - ChildPath " lib"
1616Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme" ) - Destination $powershellFolder - Force
1717Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme.stats" ) - Destination $powershellFolder - Force
18- Copy-Item - Path " $PSScriptRoot /tools" - Destination $powershellFolder - Recurse - Force
18+ Copy-Item - Path " $PSScriptRoot /tools" - Destination $powershellFolder - Recurse - Force
You can’t perform that action at this time.
0 commit comments