-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(release): update goreleaser-cross v1.19.1
release darwin universal binaries Signed-off-by: Artur Troian <[email protected]>
- Loading branch information
Showing
6 changed files
with
117 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
GOLANG_VERSION=1.17.6 | ||
GOLANG_VERSION=1.19.1 | ||
KIND_VERSION=0.11.1 | ||
GO111MODULE=on | ||
ROOT_DIR=${AKASH_ROOT} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: release | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- mainnet/main | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: git fetch --prune --unshallow | ||
- uses: c-py/action-dotenv-to-setenv@v3 | ||
with: | ||
env-file: .env | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "${{ env.GOLANG_VERSION }}" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: branch name | ||
id: branch_name | ||
run: | | ||
echo ::set-output name=MAINNET::$(./script/mainnet-from-tag.sh ${GITHUB_REF#refs/tags/}) | ||
echo ::set-output name=RELEASE_TAG::${GITHUB_REF#refs/tags/} | ||
- run: echo "Building for MAINNET=${{ steps.branch_name.outputs.MAINNET }}" | ||
- name: release dry-run | ||
run: make release | ||
env: | ||
RELEASE_TAG: ${{ steps.branch_name.outputs.RELEASE_TAG }} | ||
MAINNET: ${{ steps.branch_name.outputs.MAINNET }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,11 +95,17 @@ builds: | |
- "{{ .Env.BUILD_VARS }}" | ||
- "{{ .Env.STRIP_FLAGS }}" | ||
- "-linkmode={{ .Env.LINKMODE }}" | ||
archives: | ||
- id: akash | ||
builds: | ||
universal_binaries: | ||
- id: akash-darwin-universal | ||
ids: | ||
- akash-darwin-amd64 | ||
- akash-darwin-arm64 | ||
replace: true | ||
name_template: "{{.ProjectName}}" | ||
archives: | ||
- id: w/version | ||
builds: | ||
- akash-darwin-universal | ||
- akash-linux-amd64 | ||
- akash-linux-arm64 | ||
- akash-windows-amd64 | ||
|
@@ -108,6 +114,30 @@ archives: | |
format: zip | ||
files: | ||
- none* | ||
- id: wo/version | ||
builds: | ||
- akash-darwin-universal | ||
- akash-linux-amd64 | ||
- akash-linux-arm64 | ||
- akash-windows-amd64 | ||
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" | ||
wrap_in_directory: true | ||
format: zip | ||
files: | ||
- none* | ||
brews: | ||
- name: "{{ .Env.HOMEBREW_NAME }}" | ||
ids: | ||
- wo/version | ||
tap: | ||
owner: ovrclk | ||
name: homebrew-tap | ||
homepage: "https://akash.network" | ||
description: "Blockchain-powered decentralized compute platform" | ||
custom_block: | | ||
{{ .Env.HOMEBREW_CUSTOM }} | ||
install: | | ||
bin.install "akash" | ||
dockers: | ||
- dockerfile: _build/Dockerfile.akash | ||
|
@@ -159,13 +189,23 @@ docker_manifests: | |
- ghcr.io/ovrclk/{{ .ProjectName }}:latest-arm64 | ||
|
||
nfpms: | ||
- vendor: "Overclock Labs Inc." | ||
- id: w/version | ||
vendor: "Overclock Labs Inc." | ||
homepage: "http://ovrclk.com" | ||
maintainer: "Akash Network <[email protected]>" | ||
formats: | ||
- deb | ||
- rpm | ||
license: Apache 2.0 | ||
- id: wo/version | ||
vendor: "Overclock Labs Inc." | ||
homepage: "https://ovrclk.com" | ||
maintainer: "Overclock Labs Inc. <[email protected]>" | ||
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" | ||
formats: | ||
- deb | ||
- rpm | ||
license: Apache 2.0 | ||
|
||
release: | ||
github: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters