Skip to content

Commit 5dbd355

Browse files
committed
ci update
1 parent b17ae98 commit 5dbd355

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/test.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,27 @@ jobs:
6767
cp "$STACKQL_PATH" /tmp/stackql
6868
echo "StackQL binary moved from ${STACKQL_PATH} to /tmp/stackql"
6969
70+
# - name: Move stackql binary to temp dir (Windows)
71+
# if: matrix.os == 'windows-latest'
72+
# shell: cmd
73+
# run: |
74+
# where stackql > stackql_path.txt
75+
# set /p STACKQL_PATH=< stackql_path.txt
76+
# mkdir "C:\Temp" 2>nul || echo "Temp directory already exists"
77+
# copy "%STACKQL_PATH%" "C:\Temp\stackql.exe"
78+
# echo StackQL binary moved to C:\Temp\stackql.exe
79+
7080
- name: Move stackql binary to temp dir (Windows)
7181
if: matrix.os == 'windows-latest'
72-
shell: cmd
82+
shell: pwsh
7383
run: |
74-
where stackql > stackql_path.txt
75-
set /p STACKQL_PATH=< stackql_path.txt
76-
mkdir "C:\Temp" 2>nul || echo "Temp directory already exists"
77-
copy "%STACKQL_PATH%" "C:\Temp\stackql.exe"
78-
echo StackQL binary moved to C:\Temp\stackql.exe
84+
$stackqlBin = "$env:USERPROFILE\AppData\Local\stackql\bin\stackql.exe"
85+
if (-Not (Test-Path $stackqlBin)) {
86+
throw "Expected stackql binary not found at $stackqlBin"
87+
}
88+
Copy-Item $stackqlBin -Destination "C:\Temp\stackql.exe" -Force
89+
Write-Host "StackQL binary moved to C:\Temp\stackql.exe"
90+
7991
8092
# - name: Run non-server tests
8193
# env:
@@ -98,6 +110,7 @@ jobs:
98110
Start-Process -FilePath "C:\Temp\stackql.exe" -ArgumentList "-v", "--pgsrv.port=5444", "srv"
99111
Start-Sleep -Seconds 5
100112
113+
101114
# - name: Run server tests
102115
# env:
103116
# GITHUB_ACTIONS: 'true'

0 commit comments

Comments
 (0)