Skip to content

Commit

Permalink
split into two .goreleaser.yml's
Browse files Browse the repository at this point in the history
  • Loading branch information
feuGeneA committed Sep 5, 2024
1 parent de5a0a4 commit d52b417
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_awm_relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
args: release --clean
args: release --clean --config relayer/.goreleaser.yml
env:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_signature_aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
args: release --clean --config signature-aggregator.goreleaser.yml
args: release --clean --config signature-aggregator/.goreleaser.yml
env:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml → relayer/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ref. https://goreleaser.com/customization/build/
project_name: awm-relayer
monorepo:
tag_prefix: v
tag_prefix: awm-relayer/
dir: relayer
builds:
- id: awm-relayer
main: ./relayer/main/main.go
Expand Down
69 changes: 69 additions & 0 deletions signature-aggregator/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# ref. https://goreleaser.com/customization/build/
project_name: signature-aggregator
monorepo:
tag_prefix: signature-aggregator/
dir: signature-aggregator
builds:
- id: signature-aggregator
main: ./signature-aggregator/main/main.go
binary: signature-aggregator
flags:
- -v
# windows is ignored by default, as the `goos` field by default only
# contains linux and darwin
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1
- CGO_CFLAGS=-O -D__BLST_PORTABLE__ # Set the CGO flags to use the portable version of BLST
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- goos: darwin
goarch: arm64
env:
- CC=oa64-clang
ignore:
- goos: darwin
goarch: amd64
dockers:
- image_templates:
- 'avaplatform/signature-aggregator:{{ .Tag }}-amd64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
dockerfile: "signature-aggregator/Dockerfile"
- image_templates:
- 'avaplatform/signature-aggregator:{{ .Tag }}-arm64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
dockerfile: "signature-aggregator/Dockerfile"
goarch: arm64
docker_manifests:
- name_template: 'avaplatform/signature-aggregator:{{ .Tag }}'
image_templates:
- 'avaplatform/signature-aggregator:{{ .Tag }}-amd64'
- 'avaplatform/signature-aggregator:{{ .Tag }}-arm64'
- name_template: 'avaplatform/signature-aggregator:latest'
image_templates:
- 'avaplatform/signature-aggregator:{{ .Tag }}-amd64'
- 'avaplatform/signature-aggregator:{{ .Tag }}-arm64'
# If tag is an rc, do not push the latest tag
skip_push: auto
release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL or empty if its private hosted.
github:
owner: ava-labs
name: awm-relayer
# If tag indicates rc, will mark it as prerelease
prerelease: auto

0 comments on commit d52b417

Please # to comment.