Skip to content

Commit 76d7094

Browse files
committed
feat!: implement bme
Signed-off-by: Artur Troian <[email protected]>
1 parent df3f05e commit 76d7094

171 files changed

Lines changed: 14922 additions & 4748 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
GO111MODULE=on
2+
CGO_ENABLED=1
23

34
KIND_VERSION=0.11.1
45
ROOT_DIR=${AKASH_ROOT}
@@ -13,3 +14,5 @@ AKASH_DEVCACHE_NODE_MODULES=${AKASH_DEVCACHE}
1314
AKASH_DEVCACHE_NODE_BIN=${AKASH_DEVCACHE_NODE_MODULES}/node_modules/.bin
1415
AKASH_RUN=${AKASH_DEVCACHE}/run
1516
AKASH_RUN_BIN=${AKASH_RUN}/bin
17+
18+
CARGO_TARGET_DIR=${AKASH_DEVCACHE_BASE}/cosmwasm

.github/actions/setup-ubuntu/action.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
shell: bash
1717
run: |
1818
sudo apt-get update
19-
sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils musl-tools libudev-dev
19+
sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils musl-tools libudev-dev gcc
2020
- name: Setup npm
2121
uses: actions/setup-node@v4
2222
with:
@@ -38,3 +38,6 @@ runs:
3838
uses: HatsuneMiku3939/direnv-action@v1
3939
with:
4040
masks: ''
41+
- name: Clear stale registry cache
42+
shell: bash
43+
run: docker volume rm registry_cache || true

.github/workflows/dispatch.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,3 @@ jobs:
2020
workflow: akash
2121
ref: refs/heads/main
2222
inputs: '{ "tag" : "${{ env.RELEASE_TAG }}" }'
23-
dispatch-provider:
24-
runs-on: ubuntu-latest
25-
steps:
26-
- name: notify homebrew with new release
27-
uses: benc-uk/workflow-dispatch@v1
28-
with:
29-
token: ${{ secrets.GORELEASER_ACCESS_TOKEN }}
30-
repo: akash-network/homebrew-tap
31-
workflow: provider-services
32-
ref: refs/heads/main
33-
inputs: '{"tag": "${{ env.RELEASE_TAG }}"}'

.github/workflows/tests.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ jobs:
5555
dotnet: true # .NET runtime. Saves ~2.7GB. Total CI impact: +10s (not used in build)
5656
haskell: true # Haskell (GHC). Saves ~5GB. Total CI impact: +10s (not used in build)
5757
large-packages: true # large packages (llvm, php, mysql, etc). Saves ~5.3GB. Total CI impact: +60s (not used in build)
58+
- name: Set up QEMU
59+
uses: docker/setup-qemu-action@v3
60+
- name: Set up Docker Buildx
61+
uses: docker/setup-buildx-action@v3
5862
- name: Setup environment
5963
uses: ./.github/actions/setup-ubuntu
60-
- run: BUILD_OPTIONS=static-link make bins
64+
- run: make bins
6165
- run: make docker-image
6266

6367
tests:
@@ -136,8 +140,7 @@ jobs:
136140
- name: git tag
137141
run: git tag -a ${{ env.RELEASE_TAG }} -m ${{ env.RELEASE_TAG }}
138142
- name: release dry-run
139-
run: |
140-
make release
143+
run: make release
141144

142145
network-upgrade-names:
143146
runs-on: ubuntu-latest

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ coverage.txt
3434
/.editorconfig
3535

3636
dev.env
37+
38+
*.test
39+
40+
# Added by cargo
41+
42+
/target
43+
/artifacts

.goreleaser-docker.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ builds:
4747
- -s -w
4848
- -linkmode=external
4949
- -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"
50+
5051
dockers:
5152
- dockerfile: _build/akash.Dockerfile
5253
use: buildx

.goreleaser-test-bins.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ builds:
6868
- "{{ .Env.BUILD_LDFLAGS }}"
6969
- -s -w
7070
- -linkmode=external
71+
# yamllint disable-line rule:line-length
7172
- -extldflags "-L./.cache/lib -lwasmvm_muslc.x86_64 -Wl,-z,muldefs -lm -lrt -lc"
7273
- id: akash-linux-arm64
7374
binary: akash
@@ -87,6 +88,7 @@ builds:
8788
- "{{ .Env.BUILD_LDFLAGS }}"
8889
- -s -w
8990
- -linkmode=external
91+
# yamllint disable-line rule:line-length
9092
- -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"
9193
universal_binaries:
9294
- id: akash-darwin-universal
@@ -108,3 +110,12 @@ archives:
108110
- zip
109111
files:
110112
- none*
113+
- id: contracts
114+
name_template: "contracts"
115+
meta: true
116+
wrap_in_directory: false
117+
formats:
118+
- zip
119+
files:
120+
- src: .cache/cosmwasm/artifacts/**.*
121+
strip_parent: true

.goreleaser.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ builds:
6868
- "{{ .Env.BUILD_LDFLAGS }}"
6969
- -s -w
7070
- -linkmode=external
71+
# yamllint disable-line rule:line-length
7172
- -extldflags "-L./.cache/lib -lwasmvm_muslc.x86_64 -Wl,-z,muldefs -lm -lrt -lc"
7273
- id: akash-linux-arm64
7374
binary: akash
@@ -87,6 +88,7 @@ builds:
8788
- "{{ .Env.BUILD_LDFLAGS }}"
8889
- -s -w
8990
- -linkmode=external
91+
# yamllint disable-line rule:line-length
9092
- -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"
9193
universal_binaries:
9294
- id: akash-darwin-universal
@@ -118,6 +120,15 @@ archives:
118120
- zip
119121
files:
120122
- 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
121132

122133
checksum:
123134
# You can change the name of the checksums file.
@@ -136,11 +147,13 @@ dockers:
136147
- --label=org.opencontainers.image.url={{ .GitURL }}
137148
- --label=org.opencontainers.image.source={{ .GitURL }}
138149
- --label=org.opencontainers.image.version={{ replace .Version "+" "-" }}
150+
# yamllint disable-line rule:line-length
139151
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
140152
- --label=org.opencontainers.image.revision={{ .FullCommit }}
141153
image_templates:
142154
- '{{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}-amd64'
143155
- '{{ .Env.DOCKER_IMAGE }}:{{ replace .Version "+" "-" }}-amd64'
156+
# yamllint disable-line rule:line-length
144157
- '{{ .Env.DOCKER_IMAGE }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-amd64'
145158
- dockerfile: _build/akash.Dockerfile
146159
use: buildx
@@ -153,11 +166,13 @@ dockers:
153166
- --label=org.opencontainers.image.url={{ .GitURL }}
154167
- --label=org.opencontainers.image.source={{ .GitURL }}
155168
- --label=org.opencontainers.image.version={{ replace .Version "+" "-" }}
169+
# yamllint disable-line rule:line-length
156170
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
157171
- --label=org.opencontainers.image.revision={{ .FullCommit }}
158172
image_templates:
159173
- '{{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}-arm64'
160174
- '{{ .Env.DOCKER_IMAGE }}:{{ replace .Version "+" "-" }}-arm64'
175+
# yamllint disable-line rule:line-length
161176
- '{{ .Env.DOCKER_IMAGE }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-arm64'
162177
docker_manifests:
163178
- name_template: "{{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}"

.mockery.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ template: testify
55
template-data:
66
unroll-variadic: true
77
packages:
8-
pkg.akt.dev/node/testutil/cosmos:
8+
pkg.akt.dev/node/v2/testutil/cosmos:
99
config:
1010
dir: testutil/cosmos/mocks
1111
interfaces:
1212
AuthzKeeper: {}
13+
AccountKeeper: {}
1314
BankKeeper: {}
1415
TakeKeeper: {}

0 commit comments

Comments
 (0)