Skip to content

Commit

Permalink
ci: remove bash default on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 17, 2024
1 parent 8304859 commit f3cb92b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: CI Windows
on:
workflow_call:

defaults:
run:
shell: bash

jobs:
setup:
runs-on: windows-latest
Expand All @@ -23,7 +19,7 @@ jobs:
- name: Setup V module
run: |
bash -c "mkdir -p ~/.vmodules/ttytm && mv webview ~/.vmodules/ttytm/webview"
~/.vmodules/ttytm/webview/build.vsh --silent
v run $HOME/.vmodules/ttytm/webview/build.vsh --silent
- name: Save cache
uses: actions/cache/save@v4
with:
Expand Down Expand Up @@ -60,9 +56,13 @@ jobs:
run: v -showcc self && v doctor
- name: Build examples
run: |
for example_dir in $(find ~/.vmodules/ttytm/webview/examples/* -maxdepth 0 -type d); do
cmd="v $example_dir/"
[[ "$example_dir" =~ .*"emoji-picker"$ ]] && cmd+="main.v"
echo "$cmd"
eval "$cmd"
done
v $HOME/.vmodules/ttytm/webview/examples/project-structure/
# $exampleDirs = Get-ChildItem -Path "$HOME/.vmodules/ttytm/webview/examples" -Depth 0 -Directory
# foreach ($dir in $exampleDirs) {
# $cmd = "v $dir"
# if ($dir.FullName -match "emoji-picker") {
# $cmd += "\main.v"
# }
# Write-Output $cmd
# Invoke-Expression $cmd
# }

0 comments on commit f3cb92b

Please sign in to comment.