Skip to content

Commit ea4e5b6

Browse files
committed
gha: add GOARCH=386 build check
Signed-off-by: Aleksa Sarai <[email protected]>
1 parent 0c2fbe6 commit ea4e5b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- windows-latest
2020
- ubuntu-latest
2121
- macos-latest
22+
go-arch:
23+
- amd64
2224
go-version:
2325
- "1.18"
2426
- "1.19"
@@ -27,13 +29,19 @@ jobs:
2729
- "1.22"
2830
- "1.23"
2931
- "^1"
32+
include:
33+
- os: ubuntu-latest
34+
go-arch: "386"
35+
go-version: "^1"
3036
runs-on: ${{ matrix.os }}
3137
steps:
3238
- uses: actions/checkout@v4
3339
- uses: actions/setup-go@v5
3440
with:
3541
go-version: ${{ matrix.go-version }}
3642
check-latest: true
43+
- name: set GOOARCH
44+
run: echo "GOARCH=${{ matrix.go-arch }}" >>"$GITHUB_ENV"
3745
- name: go build check
3846
run: go build ./...
3947
- name: go test build check

0 commit comments

Comments
 (0)