@@ -20,14 +20,16 @@ builds:
2020 env :
2121 - CC=o64-clang
2222 - CXX=o64-clang++
23+ - CGO_CFLAGS=-mmacosx-version-min=10.12
2324 flags :
2425 - " -mod={{ .Env.MOD }}"
25- - " -tags={{ .Env.BUILD_TAGS }}"
26+ - " -tags={{ .Env.BUILD_TAGS }} static_wasm "
2627 - -trimpath
2728 ldflags :
28- - " {{ .Env.BUILD_VARS }}"
29- - " {{ .Env.STRIP_FLAGS }}"
30- - " -linkmode={{ .Env.LINKMODE }}"
29+ - " {{ .Env.BUILD_LDFLAGS }}"
30+ - -s -w
31+ - -linkmode=external
32+ - -extldflags "-L./.cache/lib -mmacosx-version-min=10.12"
3133 - id : akash-darwin-arm64
3234 binary : akash
3335 main : ./cmd/akash
@@ -38,14 +40,16 @@ builds:
3840 env :
3941 - CC=oa64-clang
4042 - CXX=oa64-clang++
43+ - CGO_CFLAGS=-mmacosx-version-min=10.12
4144 flags :
4245 - " -mod={{ .Env.MOD }}"
43- - " -tags={{ .Env.BUILD_TAGS }}"
46+ - " -tags={{ .Env.BUILD_TAGS }} static_wasm "
4447 - -trimpath
4548 ldflags :
46- - " {{ .Env.BUILD_VARS }}"
47- - " {{ .Env.STRIP_FLAGS }}"
48- - " -linkmode={{ .Env.LINKMODE }}"
49+ - " {{ .Env.BUILD_LDFLAGS }}"
50+ - -s -w
51+ - -linkmode=external
52+ - -extldflags "-L./.cache/lib -mmacosx-version-min=10.12"
4953 - id : akash-linux-amd64
5054 binary : akash
5155 main : ./cmd/akash
@@ -61,10 +65,11 @@ builds:
6165 - " -tags={{ .Env.BUILD_TAGS }}"
6266 - -trimpath
6367 ldflags :
64- - " {{ .Env.BUILD_VARS }}"
65- - " {{ .Env.STRIP_FLAGS }}"
66- - " -linkmode={{ .Env.LINKMODE }}"
67- - -extldflags "-lc -lrt -lpthread"
68+ - " {{ .Env.BUILD_LDFLAGS }}"
69+ - -s -w
70+ - -linkmode=external
71+ # yamllint disable-line rule:line-length
72+ - -extldflags "-L./.cache/lib -lwasmvm_muslc.x86_64 -Wl,-z,muldefs -lm -lrt -lc"
6873 - id : akash-linux-arm64
6974 binary : akash
7075 main : ./cmd/akash
@@ -80,10 +85,11 @@ builds:
8085 - " -tags={{ .Env.BUILD_TAGS }}"
8186 - -trimpath
8287 ldflags :
83- - " {{ .Env.BUILD_VARS }}"
84- - " {{ .Env.STRIP_FLAGS }}"
85- - " -linkmode={{ .Env.LINKMODE }}"
86- - -extldflags "-lc -lrt -lpthread"
88+ - " {{ .Env.BUILD_LDFLAGS }}"
89+ - -s -w
90+ - -linkmode=external
91+ # yamllint disable-line rule:line-length
92+ - -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"
8793universal_binaries :
8894 - id : akash-darwin-universal
8995 ids :
@@ -114,14 +120,23 @@ archives:
114120 - zip
115121 files :
116122 - none*
123+ - id : contracts
124+ name_template : " contracts"
125+ meta : true
126+ wrap_in_directory : false
127+ formats :
128+ - zip
129+ files :
130+ - src : .cache/cosmwasm/artifacts/**.*
131+ strip_parent : true
117132
118133checksum :
119134 # You can change the name of the checksums file.
120135 # Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`.
121136 name_template : " akash_{{ .Version }}_checksums.txt"
122137
123138dockers :
124- - dockerfile : _build/Dockerfile. akash
139+ - dockerfile : _build/akash.Dockerfile
125140 use : buildx
126141 goarch : amd64
127142 goos : linux
@@ -132,13 +147,15 @@ dockers:
132147 - --label=org.opencontainers.image.url={{ .GitURL }}
133148 - --label=org.opencontainers.image.source={{ .GitURL }}
134149 - --label=org.opencontainers.image.version={{ replace .Version "+" "-" }}
150+ # yamllint disable-line rule:line-length
135151 - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
136152 - --label=org.opencontainers.image.revision={{ .FullCommit }}
137153 image_templates :
138154 - ' {{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}-amd64'
139155 - ' {{ .Env.DOCKER_IMAGE }}:{{ replace .Version "+" "-" }}-amd64'
156+ # yamllint disable-line rule:line-length
140157 - ' {{ .Env.DOCKER_IMAGE }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-amd64'
141- - dockerfile : _build/Dockerfile. akash
158+ - dockerfile : _build/akash.Dockerfile
142159 use : buildx
143160 goarch : arm64
144161 goos : linux
@@ -149,11 +166,13 @@ dockers:
149166 - --label=org.opencontainers.image.url={{ .GitURL }}
150167 - --label=org.opencontainers.image.source={{ .GitURL }}
151168 - --label=org.opencontainers.image.version={{ replace .Version "+" "-" }}
169+ # yamllint disable-line rule:line-length
152170 - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
153171 - --label=org.opencontainers.image.revision={{ .FullCommit }}
154172 image_templates :
155173 - ' {{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}-arm64'
156174 - ' {{ .Env.DOCKER_IMAGE }}:{{ replace .Version "+" "-" }}-arm64'
175+ # yamllint disable-line rule:line-length
157176 - ' {{ .Env.DOCKER_IMAGE }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-arm64'
158177docker_manifests :
159178 - name_template : " {{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}"
0 commit comments