add goarch

This commit is contained in:
kaedwen committed 2023-07-09 09:00:55 +02:00
1 parent acd650e51c
commit 72be9703bb
1 file changed
+3 -1
+3 -1
View File
@@ -39,10 +39,12 @@ jobs:
target: target:
- os: linux - os: linux
arch: amd64 arch: amd64
goarch: amd64
deps: '' deps: ''
prefix: '' prefix: ''
- os: linux - os: linux
arch: armhf arch: armhf
goarch: arm
deps: gcc-arm-linux-gnueabihf libc6-dev-armhf-cross deps: gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
prefix: arm-linux-gnueabihf- prefix: arm-linux-gnueabihf-
steps: steps:
@@ -61,7 +63,7 @@ jobs:
- run: make build-static - run: make build-static
env: env:
GOOS: ${{ matrix.target.os }} GOOS: ${{ matrix.target.os }}
GOARCH: ${{ matrix.target.arch }} GOARCH: ${{ matrix.target.goarch }}
CC: ${{ matrix.target.prefix }}gcc CC: ${{ matrix.target.prefix }}gcc
PKG_CONFIG_PATH: /usr/lib/${{ matrix.target.prefix }}/pkgconfig PKG_CONFIG_PATH: /usr/lib/${{ matrix.target.prefix }}/pkgconfig
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3