Merge pull request #187 from openziti/arm7

Added `armv7` builds for Linux (#93)
This commit is contained in:
Michael Quigley 2023-01-30 13:03:46 -05:00 committed by GitHub
commit 67e5287dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 1 deletions

View File

@ -47,6 +47,47 @@ jobs:
name: release-builds
path: ./dist/*.gz
build-linux-arm:
runs-on: ubuntu-20.04
steps:
- run: sudo apt-get install gcc-arm-linux-gnueabi
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: '>=1.19.3'
cache: true
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
working-directory: ui
- run: npm run build
working-directory: ui
env:
CI: ""
- uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --skip-publish --config .goreleaser-linux-arm.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: release-builds
path: ./dist/*.gz
build-darwin:
runs-on: macos-latest
steps:
@ -140,7 +181,7 @@ jobs:
path: ./dist/*.gz
publish-release:
needs: [build-linux, build-darwin, build-windows]
needs: [build-linux, build-linux-arm, build-darwin, build-windows]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

15
.goreleaser-linux-arm.yml Normal file
View File

@ -0,0 +1,15 @@
builds:
- id: zrok-armv7
main: ./cmd/zrok
binary: zrok
ldflags: "-s -w -X github.com/openziti/zrok/build.Version={{.Tag}} -X github.com/openziti/zrok/build.Hash={{.ShortCommit}}"
env:
- CC=arm-linux-gnueabi-gcc
- CGO_ENABLED=1
- CC_FOR_TARGET=gcc-arm-linux-gnueabi
goos:
- linux
goarch:
- arm
goarm:
- 7