From 320fc20461e529a76e61919fe53a99eba5e871c4 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 12 Oct 2023 21:18:42 +1100 Subject: [PATCH] Add example build test windows fix --- .github/workflows/build-and-test-alpha.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-and-test-alpha.yml b/.github/workflows/build-and-test-alpha.yml index 508960d2e9f..d815f4218f5 100644 --- a/.github/workflows/build-and-test-alpha.yml +++ b/.github/workflows/build-and-test-alpha.yml @@ -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