Skip to content

Commit

Permalink
Merge branch 'master' into feat_gasUsed_std_gnovm
Browse files Browse the repository at this point in the history
  • Loading branch information
thinhnx-var authored May 29, 2024
2 parents 1d39d74 + 28111d9 commit 47647a7
Show file tree
Hide file tree
Showing 36 changed files with 1,336 additions and 400 deletions.
502 changes: 502 additions & 0 deletions .github/goreleaser-master.yaml

Large diffs are not rendered by default.

78 changes: 47 additions & 31 deletions .github/goreleaser-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ gomod:
proxy: true

archives:
# https://goreleaser.com/customization/archive/
# https://goreleaser.com/customization/archive/
- files:
# Standard Release Files
- LICENSE.md
Expand All @@ -79,28 +79,29 @@ signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
certificate: "${artifact}.pem"
args:
- sign-blob
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
artifacts: checksum
output: true

dockers:
# https://goreleaser.com/customization/docker/
# gno

# gno
- use: buildx
dockerfile: Dockerfile.gno.release
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}:nightly-amd64"
build_flag_templates:
- "--target=gno"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
Expand All @@ -113,13 +114,14 @@ dockers:
- gnovm/stdlibs
- gnovm/tests/stdlibs
- use: buildx
dockerfile: Dockerfile.gno.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}:nightly-arm64v8"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
Expand All @@ -132,14 +134,15 @@ dockers:
- gnovm/stdlibs
- gnovm/tests/stdlibs
- use: buildx
dockerfile: Dockerfile.gno.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}:nightly-armv6"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
Expand All @@ -152,14 +155,15 @@ dockers:
- gnovm/stdlibs
- gnovm/tests/stdlibs
- use: buildx
dockerfile: Dockerfile.gno.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}:nightly-armv7"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
Expand All @@ -174,13 +178,14 @@ dockers:

# gnoland
- use: buildx
dockerfile: Dockerfile.gnoland.release
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-amd64"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoland"
Expand All @@ -194,13 +199,14 @@ dockers:
- examples
- gnovm/stdlibs
- use: buildx
dockerfile: Dockerfile.gnoland.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-arm64v8"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoland"
Expand All @@ -214,14 +220,15 @@ dockers:
- examples
- gnovm/stdlibs
- use: buildx
dockerfile: Dockerfile.gnoland.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-armv6"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoland"
Expand All @@ -235,14 +242,15 @@ dockers:
- examples
- gnovm/stdlibs
- use: buildx
dockerfile: Dockerfile.gnoland.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-armv7"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoland"
Expand All @@ -257,13 +265,14 @@ dockers:
- gnovm/stdlibs
# gnokey
- use: buildx
dockerfile: Dockerfile.gnokey.release
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-amd64"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnokey"
Expand All @@ -272,13 +281,14 @@ dockers:
ids:
- gnokey
- use: buildx
dockerfile: Dockerfile.gnokey.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-arm64v8"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnokey"
Expand All @@ -287,14 +297,15 @@ dockers:
ids:
- gnokey
- use: buildx
dockerfile: Dockerfile.gnokey.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-armv6"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnokey"
Expand All @@ -303,31 +314,33 @@ dockers:
ids:
- gnokey
- use: buildx
dockerfile: Dockerfile.gnokey.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-armv7"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnokey"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnokey

# gnoweb
- use: buildx
dockerfile: Dockerfile.gnoweb.release
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:nightly-amd64"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoweb"
Expand All @@ -336,13 +349,14 @@ dockers:
ids:
- gnoweb
- use: buildx
dockerfile: Dockerfile.gnoweb.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:nightly-arm64v8"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoweb"
Expand All @@ -351,14 +365,15 @@ dockers:
ids:
- gnoweb
- use: buildx
dockerfile: Dockerfile.gnoweb.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:nightly-armv6"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoweb"
Expand All @@ -367,14 +382,15 @@ dockers:
ids:
- gnoweb
- use: buildx
dockerfile: Dockerfile.gnoweb.release
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:nightly-armv7"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnoweb"
Expand All @@ -399,7 +415,7 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}:nightly-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:nightly-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:nightly-armv7

# gnoland
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}
image_templates:
Expand All @@ -413,7 +429,7 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:nightly-armv7

# gnokey
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}
image_templates:
Expand All @@ -427,7 +443,7 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:nightly-armv7

# gnoweb
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}
image_templates:
Expand All @@ -449,12 +465,12 @@ docker_signs:
artifacts: images
output: true
args:
- 'sign'
- '${artifact}'
- "sign"
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"

changelog:
sort: asc
Expand Down Expand Up @@ -482,4 +498,4 @@ release:
nightly:
tag_name: nightly
publish_release: true
keep_single_release: true
keep_single_release: true
Loading

0 comments on commit 47647a7

Please sign in to comment.