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:
11
11
shell : ' bash -Eeuo pipefail -x {0}'
12
12
13
13
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 }}
17
20
steps :
18
21
- uses : actions/checkout@v3
19
22
- uses : ./ # test our "action.yml" 👀
25
28
bashbrew cat "$image"
26
29
bashbrew from --uniq "$image"
27
30
28
- "$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64"
31
+ "$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64" or "windows-amd64"
29
32
30
33
arm32v7="$("$BASHBREW_SCRIPTS/bashbrew-arch-to-goenv.sh" arm32v7)"
31
34
eval "$arm32v7"
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ set -Eeuo pipefail
6
6
dir=" $( readlink -f " $BASH_SOURCE " ) "
7
7
dir=" $( dirname " $dir " ) "
8
8
9
- export GO111MODULE=on
9
+ : " ${CGO_ENABLED:= 0} "
10
+ export GO111MODULE=on CGO_ENABLED
10
11
(
11
12
cd " $dir "
12
13
go build -o bin/bashbrew ./cmd/bashbrew > /dev/null
You can’t perform that action at this time.
0 commit comments