mirror of
https://github.com/openziti/zrok.git
synced 2025-01-10 16:08:20 +01:00
Merge pull request #187 from openziti/arm7
Added `armv7` builds for Linux (#93)
This commit is contained in:
commit
67e5287dfd
43
.github/workflows/release.yml
vendored
43
.github/workflows/release.yml
vendored
@ -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
15
.goreleaser-linux-arm.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user