64
64
if : matrix.os == 'windows-latest'
65
65
shell : cmd
66
66
run : |
67
- stackql.exe --version
67
+ stackql-bin .exe --version
68
68
69
69
- name : Move stackql binary to temp dir (Linux/macOS)
70
70
if : matrix.os != 'windows-latest'
@@ -75,27 +75,16 @@ jobs:
75
75
cp "$STACKQL_PATH" /tmp/stackql
76
76
echo "StackQL binary moved from ${STACKQL_PATH} to /tmp/stackql"
77
77
78
- # - name: Move stackql binary to temp dir (Windows)
79
- # if: matrix.os == 'windows-latest'
80
- # shell: cmd
81
- # run: |
82
- # where stackql > stackql_path.txt
83
- # set /p STACKQL_PATH=< stackql_path.txt
84
- # mkdir "C:\Temp" 2>nul || echo "Temp directory already exists"
85
- # copy "%STACKQL_PATH%" "C:\Temp\stackql.exe"
86
- # echo StackQL binary moved to C:\Temp\stackql.exe
87
-
88
78
- name : Move stackql binary to temp dir (Windows)
89
79
if : matrix.os == 'windows-latest'
90
80
shell : pwsh
91
81
run : |
92
- $stackqlBin = "$env:USERPROFILE\AppData\Local\ stackql\ bin\stackql .exe"
93
- if (-Not (Test-Path $stackqlBin )) {
94
- throw "Expected stackql binary not found at $stackqlBin "
82
+ $bin = Join-Path $Env:STACKQL_CLI_PATH ' stackql- bin.exe'
83
+ if (-Not (Test-Path $bin )) {
84
+ throw "Binary not found at $bin "
95
85
}
96
- Copy-Item $stackqlBin -Destination "C:\Temp\stackql.exe" -Force
97
- Write-Host "StackQL binary moved to C:\Temp\stackql.exe"
98
-
86
+ Copy-Item $bin -Destination "C:\Temp\stackql.exe" -Force
87
+ Write-Host "Moved real StackQL binary to C:\Temp\stackql.exe"
99
88
100
89
# - name: Run non-server tests
101
90
# env:
@@ -115,10 +104,10 @@ jobs:
115
104
if : matrix.os == 'windows-latest'
116
105
shell : pwsh
117
106
run : |
118
- Start-Process -FilePath "C:\Temp\stackql.exe" -ArgumentList "-v", "--pgsrv.port=5444", "srv"
107
+ Start-Process -FilePath "C:\Temp\stackql.exe" `
108
+ -ArgumentList "-v", "--pgsrv.port=5444", "srv"
119
109
Start-Sleep -Seconds 5
120
110
121
-
122
111
# - name: Run server tests
123
112
# env:
124
113
# GITHUB_ACTIONS: 'true'
0 commit comments