Skip to content

Commit a7a2417

Browse files
committed
Use powershell for windows
1 parent 7f27ea0 commit a7a2417

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release-binaries.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,20 @@ jobs:
250250
-DBOOTSTRAP_LLVM_PARALLEL_LINK_JOBS=1 \
251251
-DBOOTSTRAP_BOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}"
252252
253-
- name: Build
253+
- name: Build Unix
254254
shell: bash
255+
if: ${{ runner.os }} != "Windows"
255256
run: |
256257
ninja -v -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-package
257258
release_dir=`find ${{ steps.setup-stage.outputs.build-prefix }}/build -iname 'stage2-bins'`
258259
mv $release_dir/${{ needs.prepare.outputs.release-binary-filename }} .
260+
261+
# There is an issue with building on Windows with bash so we use power shell.
262+
# ninja: error: mkdir(tools/clang/tools/extra/clang-tidy/misc/ConfusableTable/CMakeFiles/clang-tidy-confusable-chars-gen.dir/C_/actions-runner/llvm-project/llvm-project/llvm): No such file or directory
263+
- name: Build Windows
264+
if: ${{ runner.os }} == "Windows"
265+
run: |
266+
ninja -v -C build stage2-package
259267
260268
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0
261269
with:

0 commit comments

Comments
 (0)