Skip to content

Commit

Permalink
Add windows servers to smoke test
Browse files Browse the repository at this point in the history
Disable cgo to fix build failure on GHA windows-2022
  • Loading branch information
yosifkit committed Sep 25, 2023
1 parent 6334a4f commit 5eb555b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ defaults:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:
build:
name: Build
runs-on: ubuntu-latest
build-matrix:
strategy:
matrix:
os: [ ubuntu-latest, windows-2019, windows-2022 ]
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./ # test our "action.yml" 👀
Expand All @@ -25,7 +28,7 @@ jobs:
bashbrew cat "$image"
bashbrew from --uniq "$image"
"$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64"
"$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64" or "windows-amd64"
arm32v7="$("$BASHBREW_SCRIPTS/bashbrew-arch-to-goenv.sh" arm32v7)"
eval "$arm32v7"
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ runs:
- uses: actions/setup-go@v3
with:
go-version-file: '${{ github.action_path }}/go.mod'
env:
CGO_ENABLED: 0
- run: |
'${{ github.action_path }}/bashbrew.sh' --version > /dev/null
'${{ github.action_path }}/bin/bashbrew' --version
Expand Down

0 comments on commit 5eb555b

Please sign in to comment.