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 26
26
- name : Install PowerShell
27
27
run : |
28
28
$path = Split-Path (Get-Command codeql).Source
29
- ./powershell/build.ps1 $path
29
+ ./powershell/build-win64 .ps1 $path
30
30
- name : Run QL tests
31
31
run : |
32
32
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 3
3
)
4
4
5
5
$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
7
7
if ($LASTEXITCODE -ne 0 ) {
8
8
Write-Host " Build failed"
9
9
exit 1
@@ -15,4 +15,4 @@ Copy-Item -Path "$PSScriptRoot/downgrades" -Destination $powershellFolder -Recur
15
15
$qlLibFolder = Join-Path - Path " $PSScriptRoot /ql" - ChildPath " lib"
16
16
Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme" ) - Destination $powershellFolder - Force
17
17
Copy-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