add params to build
This commit is contained in:
1 parent
d4aa335196
commit
94e1abedbe
1 file changed
+11
-2
@@ -37,10 +37,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
target:
|
||||||
- arch: amd64
|
- os: linux
|
||||||
|
arch: amd64
|
||||||
deps: ''
|
deps: ''
|
||||||
- arch: armhf
|
prefix: ''
|
||||||
|
- os: linux
|
||||||
|
arch: armhf
|
||||||
deps: gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
|
deps: gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
|
||||||
|
prefix: arm-linux-gnueabihf-
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
@@ -55,6 +59,11 @@ jobs:
|
|||||||
name: static
|
name: static
|
||||||
path: static/dist
|
path: static/dist
|
||||||
- run: make build-static
|
- 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
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: binary
|
name: binary
|
||||||
|
|||||||
Reference in new issue
Block a user