add params to build

This commit is contained in:
kaedwen
2023-07-09 08:54:16 +02:00
parent d4aa335196
commit 94e1abedbe
+11 -2
View File
@@ -37,10 +37,14 @@ jobs:
strategy:
matrix:
target:
- arch: amd64
- os: linux
arch: amd64
deps: ''
- arch: armhf
prefix: ''
- os: linux
arch: armhf
deps: gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
prefix: arm-linux-gnueabihf-
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
@@ -55,6 +59,11 @@ jobs:
name: static
path: static/dist
- run: make build-static
env:
GOOS: ${{ matrix.target.os }}
GOARCH: ${{ matrix.target.arch }}
CC: ${{ matrix.target.prefix }}-gcc
PKG_CONFIG_PATH: /usr/lib/${{ matrix.target.prefix }}/pkgconfig
- uses: actions/upload-artifact@v3
with:
name: binary