Skip to content

Commit 4e2768b

Browse files
committed
ci update
1 parent 6ec525f commit 4e2768b

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/test.yaml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
if: matrix.os == 'windows-latest'
6565
shell: cmd
6666
run: |
67-
stackql.exe --version
67+
stackql-bin.exe --version
6868
6969
- name: Move stackql binary to temp dir (Linux/macOS)
7070
if: matrix.os != 'windows-latest'
@@ -75,27 +75,16 @@ jobs:
7575
cp "$STACKQL_PATH" /tmp/stackql
7676
echo "StackQL binary moved from ${STACKQL_PATH} to /tmp/stackql"
7777
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-
8878
- name: Move stackql binary to temp dir (Windows)
8979
if: matrix.os == 'windows-latest'
9080
shell: pwsh
9181
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"
9585
}
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"
9988
10089
# - name: Run non-server tests
10190
# env:
@@ -115,10 +104,10 @@ jobs:
115104
if: matrix.os == 'windows-latest'
116105
shell: pwsh
117106
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"
119109
Start-Sleep -Seconds 5
120110
121-
122111
# - name: Run server tests
123112
# env:
124113
# GITHUB_ACTIONS: 'true'

0 commit comments

Comments
 (0)