Skip to content

Commit f55ca10

Browse files
committed
fix(ci): adjust file extension for windows
1 parent 9e8229c commit f55ca10

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-cli-binaries.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,19 @@ jobs:
7878
fi
7979
8080
- name: Compile CLI binary
81+
shell: bash
8182
run: |
8283
cd genkit-tools/cli
8384
pnpm compile:bun
84-
mv dist/bin/genkit dist/bin/genkit-${{ matrix.target }}${{ steps.binary.outputs.ext }}
85+
86+
# Handle the binary name based on OS
87+
if [[ "${{ matrix.os }}" == windows-* ]]; then
88+
# On Windows, Bun outputs genkit.exe
89+
mv dist/bin/genkit.exe "dist/bin/genkit-${{ matrix.target }}.exe"
90+
else
91+
# On Unix-like systems, no extension
92+
mv dist/bin/genkit "dist/bin/genkit-${{ matrix.target }}"
93+
fi
8594
8695
- name: Upload binary artifact
8796
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)