Skip to content

Commit a226be9

Browse files
authored
Merge pull request #83 from docker-library/windows-workflow
Add windows servers to smoke test
2 parents 6334a4f + c4273aa commit a226be9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ defaults:
1111
shell: 'bash -Eeuo pipefail -x {0}'
1212

1313
jobs:
14-
build:
15-
name: Build
16-
runs-on: ubuntu-latest
14+
build-matrix:
15+
strategy:
16+
matrix:
17+
os: [ ubuntu-latest, windows-2019, windows-2022 ]
18+
name: Build ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
1720
steps:
1821
- uses: actions/checkout@v3
1922
- uses: ./ # test our "action.yml" 👀
@@ -25,7 +28,7 @@ jobs:
2528
bashbrew cat "$image"
2629
bashbrew from --uniq "$image"
2730
28-
"$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64"
31+
"$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64" or "windows-amd64"
2932
3033
arm32v7="$("$BASHBREW_SCRIPTS/bashbrew-arch-to-goenv.sh" arm32v7)"
3134
eval "$arm32v7"

bashbrew.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ set -Eeuo pipefail
66
dir="$(readlink -f "$BASH_SOURCE")"
77
dir="$(dirname "$dir")"
88

9-
export GO111MODULE=on
9+
: "${CGO_ENABLED:=0}"
10+
export GO111MODULE=on CGO_ENABLED
1011
(
1112
cd "$dir"
1213
go build -o bin/bashbrew ./cmd/bashbrew > /dev/null

0 commit comments

Comments
 (0)