Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

Commit 890009e

Browse files
committed
ci: add cross-platform build
1 parent 7670145 commit 890009e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,19 @@ jobs:
4040
- name: Checkout code
4141
uses: actions/checkout@v2
4242

43+
- name: Install Linux packages
44+
if: matrix.platform == 'ubuntu-latest'
45+
run: |
46+
sudo apt-get update
47+
sudo apt-get install -qq pkg-config gcc-arm-linux-gnueabihf
48+
4349
- name: Build-Linux-32b-arm
4450
if: matrix.platform == 'ubuntu-latest'
4551
run: |
46-
GOARCH=arm go install -v ./...
52+
GOARCH=arm CGO_ENABLED=1 \
53+
CC=arm-linux-gnueabihf-gcc \
54+
CC_FOR_TARGET=arm-linux-gnueabihf-gcc \
55+
go install -v ./...
4756
- name: Build-Linux-64b
4857
if: matrix.platform == 'ubuntu-latest'
4958
run: |

0 commit comments

Comments
 (0)