Add example build test windows fix

This commit is contained in:
Lea Anthony
2023-10-12 21:18:42 +11:00
parent 69f05c39ec
commit 320fc20461
@@ -38,6 +38,7 @@ jobs:
run: go test -v ./...
- name: Run go build for each subdirectory in v3/examples
if: matrix.os != 'windows-latest'
run: |
for dir in v3/examples/*
do
@@ -48,6 +49,17 @@ jobs:
cd -
done
- name: Run go build for each subdirectory in v3/examples
if: matrix.os == 'windows-latest'
run: |
foreach ($dir in Get-ChildItem -Path ./v3/examples -Directory) {
Write-Host ("Building in " + $dir.FullName)
Set-Location -Path $dir.FullName
go build
Set-Location -Path ${{ github.workspace }}
}
shell: pwsh
- name: Run tests (!mac)
if: matrix.os != 'macos-latest'
working-directory: ./v3