Skip to content

Commit

Permalink
Add example build test windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Oct 12, 2023
1 parent 69f05c3 commit 320fc20
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-and-test-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 320fc20

Please sign in to comment.