mirror of
https://github.com/openziti/zrok.git
synced 2025-06-06 09:57:18 +02: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
|
name: release-builds
|
||||||
path: ./dist/*.gz
|
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:
|
build-darwin:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
@ -140,7 +181,7 @@ jobs:
|
|||||||
path: ./dist/*.gz
|
path: ./dist/*.gz
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
needs: [build-linux, build-darwin, build-windows]
|
needs: [build-linux, build-linux-arm, build-darwin, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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…
x
Reference in New Issue
Block a user