Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gnovm): check const type and values expr #2651

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2933d8a
fix(gnovm): add const type is basic check
MikaelVallenet Aug 1, 2024
64fe55e
fix(gnovm): add recursiv check on unary & binary operands
MikaelVallenet Aug 1, 2024
c3a20f8
fix(gnovm): naming for const type & values check function
MikaelVallenet Aug 1, 2024
ec36c34
fix(gnovm): naming for const type & values check function
MikaelVallenet Aug 1, 2024
b45887d
fix(gnovm): naming for const type & values check function
MikaelVallenet Aug 1, 2024
415a7cf
fix(gnovm): verify callExpr func component for constant declaration
MikaelVallenet Aug 2, 2024
1d009e2
Merge branch 'gnolang:master' into gnovm-check-const-type-expr
MikaelVallenet Aug 8, 2024
bb421f9
feat(gnoland): Improve `gnoland config/secrets` command description (…
gfanton Aug 9, 2024
0d7b7fd
feat: add p/demo/entropy (#2487)
moul Aug 9, 2024
b428353
ci: Full revision of Goreleaser tasks (#2672)
sw360cab Aug 12, 2024
79a7589
chore(ci): Fix master branch goreleaser (#2686)
sw360cab Aug 14, 2024
6d8f23b
chore: fixate `golangci-lint` CI version to `1.59` (#2693)
zivkovicmilos Aug 14, 2024
7e1bd78
chore(ci): revamping master branch goreleaser (#2694)
sw360cab Aug 14, 2024
8c78251
feat(examples): implement `r/events`, `p/authorizable` (#2372)
leohhhn Aug 14, 2024
eba1daf
chore(examples): update home page, add add test for r/events (#2697)
leohhhn Aug 14, 2024
8c02808
chore: update `gnolang/faucet` version to `v0.3.2` (#2701)
zivkovicmilos Aug 14, 2024
784bd5b
fix: small typo in gnodev documentation (#2680)
aeddi Aug 14, 2024
40caf59
feat: render .md files from packages (#2540)
alexiscolin Aug 15, 2024
2e9b970
fix(gnovm): prevent cyclic references in type declarations (#2081)
ltzmaxwell Aug 16, 2024
379dc51
fix(gnovm): correct comparison between different types (#1890)
ltzmaxwell Aug 16, 2024
e3b7303
wip: testing things
MikaelVallenet Aug 17, 2024
14e2f13
wip: testing things
MikaelVallenet Aug 17, 2024
d01ffa7
wip: testing things
MikaelVallenet Aug 17, 2024
b28e76d
wip: testing things
MikaelVallenet Aug 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 151 additions & 38 deletions .github/goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
project_name: gno
version: 2

env:
- TAG_VERSION={{ if index .Env "TAG_VERSION" }}{{ .Env.TAG_VERSION }}{{ else }}latest{{ end }}
# supported in next versions -> https://github.com/goreleaser/goreleaser/issues/5059
# - TAG_VERSION="{{ envOrDefault "TAG_VERSION" "latest" }}"

before:
hooks:
Expand Down Expand Up @@ -65,6 +71,22 @@ builds:
goarm:
- 6
- 7
- id: gnofaucet
dir: ./contribs/gnofaucet
binary: gnofaucet
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7

gomod:
proxy: true

Expand Down Expand Up @@ -99,7 +121,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-amd64"
build_flag_templates:
- "--target=gno"
- "--platform=linux/amd64"
Expand All @@ -119,7 +141,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-arm64v8"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm64/v8"
Expand All @@ -140,7 +162,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv6"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm/v6"
Expand All @@ -161,7 +183,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv7"
build_flag_templates:
- "--target=gno"
- "--platform=linux/arm/v7"
Expand All @@ -183,7 +205,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-amd64"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/amd64"
Expand All @@ -204,7 +226,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-arm64v8"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm64/v8"
Expand All @@ -226,7 +248,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv6"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm/v6"
Expand All @@ -248,7 +270,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv7"
build_flag_templates:
- "--target=gnoland"
- "--platform=linux/arm/v7"
Expand All @@ -270,7 +292,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-amd64"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/amd64"
Expand All @@ -286,7 +308,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-arm64v8"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm64/v8"
Expand All @@ -303,7 +325,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv6"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm/v6"
Expand All @@ -320,7 +342,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv7"
build_flag_templates:
- "--target=gnokey"
- "--platform=linux/arm/v7"
Expand All @@ -338,7 +360,7 @@ dockers:
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-amd64"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/amd64"
Expand All @@ -354,7 +376,7 @@ dockers:
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-arm64v8"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm64/v8"
Expand All @@ -371,7 +393,7 @@ dockers:
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv6"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm/v6"
Expand All @@ -388,7 +410,7 @@ dockers:
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv7"
build_flag_templates:
- "--target=gnoweb"
- "--platform=linux/arm/v7"
Expand All @@ -399,6 +421,74 @@ dockers:
ids:
- gnoweb

# gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-amd64"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-amd64"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-arm64v8"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-arm64v8"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 6
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv6"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet
- use: buildx
dockerfile: Dockerfile.release
goos: linux
goarch: arm
goarm: 7
image_templates:
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv7"
- "ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7"
build_flag_templates:
- "--target=gnofaucet"
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}/gnofaucet"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnofaucet

docker_manifests:
# https://goreleaser.com/customization/docker_manifest/

Expand All @@ -409,12 +499,12 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:latest
- name_template: ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:latest-armv7
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}:{{ .Env.TAG_VERSION }}-armv7

# gnoland
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}
Expand All @@ -423,12 +513,12 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:latest-armv7
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoland:{{ .Env.TAG_VERSION }}-armv7

# gnokey
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}
Expand All @@ -437,26 +527,40 @@ docker_manifests:
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:latest-armv7

- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnokey:{{ .Env.TAG_VERSION }}-armv7
# gnoweb
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:latest-armv7
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnoweb:{{ .Env.TAG_VERSION }}-armv7

# gnofaucet
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Version }}-armv7
- name_template: ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}
image_templates:
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-amd64
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-arm64v8
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv6
- ghcr.io/gnolang/{{ .ProjectName }}/gnofaucet:{{ .Env.TAG_VERSION }}-armv7

docker_signs:
- cmd: cosign
Expand Down Expand Up @@ -484,6 +588,8 @@ sboms:
artifacts: source

release:
disable: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}'
skip_upload: '{{ if eq .Env.TAG_VERSION "master" }}true{{ else }}false{{ end }}'
draft: true
replace_existing_draft: true
prerelease: auto
Expand All @@ -493,4 +599,11 @@ release:

You can find all docker images at:

https://github.com/orgs/gnolang/packages?repo_name={{ .ProjectName }}
https://github.com/orgs/gnolang/packages?repo_name={{ .ProjectName }}

# Only valid for nightly build
nightly:
tag_name: nightly
publish_release: true
keep_single_release: true
name_template: "{{ incpatch .Version }}-{{ .ShortCommit }}-{{ .Env.TAG_VERSION }}"
15 changes: 8 additions & 7 deletions .github/workflows/lint_template.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on:
workflow_call:
inputs:
modulepath:
required: true
type: string
go-version:
required: true
type: string
inputs:
modulepath:
required: true
type: string
go-version:
required: true
type: string


jobs:
Expand All @@ -25,3 +25,4 @@ jobs:
working-directory: ${{ inputs.modulepath }}
args:
--config=${{ github.workspace }}/.github/golangci.yml
version: v1.59 # sync with misc/devdeps
Loading