Skip to content

Commit 4666bcb

Browse files
author
lmbsog0
committed
add i386 build
1 parent d8b41fc commit 4666bcb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,30 @@ jobs:
8888
- test-linux
8989
strategy:
9090
matrix:
91-
target: [ amd64, arm64, arm ]
91+
target: [ i386, amd64, arm64, arm ]
9292
include:
93+
- target: amd32
94+
CGO_ENABLED: 1
95+
GOARCH: 386
96+
CC: gcc
97+
CGO_FLAGS: -m32
9398
- target: amd64
9499
CGO_ENABLED: 1
95100
GOARCH: amd64
96101
CC: gcc
102+
CGO_FLAGS: ""
97103
- target: arm64
98104
CGO_ENABLED: 1
99105
GOARCH: arm64
100106
CC: /usr/local/gcc-linaro-4.8-2015.06-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
107+
CGO_FLAGS: ""
101108
toolchain_source: https://releases.linaro.org/archive/15.06/components/toolchain/binaries/4.8/aarch64-linux-gnu/gcc-linaro-4.8-2015.06-x86_64_aarch64-linux-gnu.tar.xz
102109
toolchain_extract: sudo tar -xf gcc-linaro-4.8-2015.06-x86_64_aarch64-linux-gnu.tar.xz -C /usr/local
103110
- target: arm
104111
CGO_ENABLED: 1
105112
GOARCH: arm
106113
CC: /usr/local/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc
114+
CGO_FLAGS: ""
107115
toolchain_source: https://releases.linaro.org/archive/15.06/components/toolchain/binaries/4.8/arm-linux-gnueabi/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabi.tar.xz
108116
toolchain_extract: sudo tar -xf gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabi.tar.xz -C /usr/local
109117
env:
@@ -122,6 +130,9 @@ jobs:
122130
with:
123131
name: grpc
124132
path: pkg/a2l
133+
- if: ${{ matrix.GOARCH == '386' }}
134+
run: |
135+
sudo apt-get install libc6-dev-i386
125136
- if: ${{ matrix.CC != 'gcc' }}
126137
run: |
127138
wget ${{ matrix.toolchain_source }}

0 commit comments

Comments
 (0)