File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,12 @@ defaults:
1111 shell : ' bash -Eeuo pipefail -x {0}'
1212
1313jobs :
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" 👀
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"
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ set -Eeuo pipefail
66dir=" $( readlink -f " $BASH_SOURCE " ) "
77dir=" $( 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
You can’t perform that action at this time.
0 commit comments