Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
GO111MODULE=on
CGO_ENABLED=1

KIND_VERSION=0.11.1
ROOT_DIR=${AKASH_ROOT}

AKASH_DEVCACHE_BASE=${AKASH_ROOT}/.cache
AKASH_DEVCACHE=${AKASH_DEVCACHE_BASE}
AKASH_DEVCACHE_BIN=${AKASH_DEVCACHE}/bin
AKASH_DEVCACHE_LIB=${AKASH_DEVCACHE}/lib
AKASH_DEVCACHE_INCLUDE=${AKASH_DEVCACHE}/include
AKASH_DEVCACHE_VERSIONS=${AKASH_DEVCACHE}/versions
AKASH_DEVCACHE_NODE_MODULES=${AKASH_DEVCACHE}
AKASH_DEVCACHE_NODE_BIN=${AKASH_DEVCACHE_NODE_MODULES}/node_modules/.bin
AKASH_RUN=${AKASH_DEVCACHE}/run
AKASH_RUN_BIN=${AKASH_RUN}/bin

CARGO_TARGET_DIR=${AKASH_DEVCACHE_BASE}/cosmwasm
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export GOTOOLCHAIN
export GOTOOLCHAIN_SEMVER
export GOWORK

PATH_add "$AKASH_DEVCACHE_NODE_BIN"
PATH_add "$AKASH_DEVCACHE_BIN"
PATH_add "$AKASH_DEVCACHE_NODE_BIN"

AKASH_DIRENV_SET=1
AKASH=$AKASH_DEVCACHE_BIN/akash
Expand Down
5 changes: 4 additions & 1 deletion .github/actions/setup-ubuntu/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y make direnv unzip lz4 wget curl npm jq pv coreutils libudev-dev
sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils musl-tools libudev-dev gcc
- name: Setup npm
uses: actions/setup-node@v4
with:
Expand All @@ -38,3 +38,6 @@ runs:
uses: HatsuneMiku3939/direnv-action@v1
with:
masks: ''
- name: Clear stale registry cache
shell: bash
run: docker volume rm registry_cache || true
11 changes: 0 additions & 11 deletions .github/workflows/dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,3 @@ jobs:
workflow: akash
ref: refs/heads/main
inputs: '{ "tag" : "${{ env.RELEASE_TAG }}" }'
dispatch-provider:
runs-on: ubuntu-latest
steps:
- name: notify homebrew with new release
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.GORELEASER_ACCESS_TOKEN }}
repo: akash-network/homebrew-tap
workflow: provider-services
ref: refs/heads/main
inputs: '{"tag": "${{ env.RELEASE_TAG }}"}'
7 changes: 5 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
dotnet: true # .NET runtime. Saves ~2.7GB. Total CI impact: +10s (not used in build)
haskell: true # Haskell (GHC). Saves ~5GB. Total CI impact: +10s (not used in build)
large-packages: true # large packages (llvm, php, mysql, etc). Saves ~5.3GB. Total CI impact: +60s (not used in build)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup environment
uses: ./.github/actions/setup-ubuntu
- run: make bins
Expand Down Expand Up @@ -136,8 +140,7 @@ jobs:
- name: git tag
run: git tag -a ${{ env.RELEASE_TAG }} -m ${{ env.RELEASE_TAG }}
- name: release dry-run
run: |
make release
run: make release

network-upgrade-names:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ coverage.txt
/.editorconfig

dev.env

*.test

# Added by cargo

/target
/artifacts
21 changes: 11 additions & 10 deletions .goreleaser-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ builds:
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
- -extldflags "-L./.cache/lib -lwasmvm_muslc.x86_64 -Wl,-z,muldefs -lm -lrt -lc"
- id: akash-linux-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -43,12 +43,13 @@ builds:
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
- -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"

dockers:
- dockerfile: _build/Dockerfile.akash
- dockerfile: _build/akash.Dockerfile
use: buildx
goarch: amd64
goos: linux
Expand All @@ -63,7 +64,7 @@ dockers:
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- '{{ .Env.DOCKER_IMAGE }}:latest-amd64'
- dockerfile: _build/Dockerfile.akash
- dockerfile: _build/akash.Dockerfile
use: buildx
goarch: arm64
goos: linux
Expand Down
47 changes: 31 additions & 16 deletions .goreleaser-test-bins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_CFLAGS=-mmacosx-version-min=10.12
- CGO_LDFLAGS=-L./.cache/lib -mmacosx-version-min=10.12
flags:
- "-mod={{ .Env.MOD }}"
- "-tags={{ .Env.BUILD_TAGS }}"
- "-tags={{ .Env.BUILD_TAGS }} static_wasm"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
- id: akash-darwin-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -38,14 +40,16 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
- CGO_CFLAGS=-mmacosx-version-min=10.12
- CGO_LDFLAGS=-L./.cache/lib -mmacosx-version-min=10.12
flags:
- "-mod={{ .Env.MOD }}"
- "-tags={{ .Env.BUILD_TAGS }}"
- "-tags={{ .Env.BUILD_TAGS }} static_wasm"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
- id: akash-linux-amd64
binary: akash
main: ./cmd/akash
Expand All @@ -61,10 +65,11 @@ builds:
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
# yamllint disable-line rule:line-length
- -extldflags "-L./.cache/lib -lwasmvm_muslc.x86_64 -Wl,-z,muldefs -lm -lrt -lc"
- id: akash-linux-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -80,10 +85,11 @@ builds:
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
# yamllint disable-line rule:line-length
- -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"
universal_binaries:
- id: akash-darwin-universal
ids:
Expand All @@ -104,3 +110,12 @@ archives:
- zip
files:
- none*
- id: contracts
name_template: "contracts"
meta: true
wrap_in_directory: false
formats:
- zip
files:
- src: .cache/cosmwasm/artifacts/**.*
strip_parent: true
55 changes: 37 additions & 18 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_CFLAGS=-mmacosx-version-min=10.12
flags:
- "-mod={{ .Env.MOD }}"
- "-tags={{ .Env.BUILD_TAGS }}"
- "-tags={{ .Env.BUILD_TAGS }} static_wasm"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
- -extldflags "-L./.cache/lib -mmacosx-version-min=10.12"
- id: akash-darwin-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -38,14 +40,16 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
- CGO_CFLAGS=-mmacosx-version-min=10.12
flags:
- "-mod={{ .Env.MOD }}"
- "-tags={{ .Env.BUILD_TAGS }}"
- "-tags={{ .Env.BUILD_TAGS }} static_wasm"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
- -extldflags "-L./.cache/lib -mmacosx-version-min=10.12"
- id: akash-linux-amd64
binary: akash
main: ./cmd/akash
Expand All @@ -61,10 +65,11 @@ builds:
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
# yamllint disable-line rule:line-length
- -extldflags "-L./.cache/lib -lwasmvm_muslc.x86_64 -Wl,-z,muldefs -lm -lrt -lc"
- id: akash-linux-arm64
binary: akash
main: ./cmd/akash
Expand All @@ -80,10 +85,11 @@ builds:
- "-tags={{ .Env.BUILD_TAGS }}"
- -trimpath
ldflags:
- "{{ .Env.BUILD_VARS }}"
- "{{ .Env.STRIP_FLAGS }}"
- "-linkmode={{ .Env.LINKMODE }}"
- -extldflags "-lc -lrt -lpthread"
- "{{ .Env.BUILD_LDFLAGS }}"
- -s -w
- -linkmode=external
# yamllint disable-line rule:line-length
- -extldflags "-L./.cache/lib -lwasmvm_muslc.aarch64 -Wl,-z,muldefs -lm -lrt -lc"
universal_binaries:
- id: akash-darwin-universal
ids:
Expand Down Expand Up @@ -114,14 +120,23 @@ archives:
- zip
files:
- none*
- id: contracts
name_template: "contracts"
meta: true
wrap_in_directory: false
formats:
- zip
files:
- src: .cache/cosmwasm/artifacts/**.*
strip_parent: true

checksum:
# You can change the name of the checksums file.
# Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`.
name_template: "akash_{{ .Version }}_checksums.txt"

dockers:
- dockerfile: _build/Dockerfile.akash
- dockerfile: _build/akash.Dockerfile
use: buildx
goarch: amd64
goos: linux
Expand All @@ -132,13 +147,15 @@ dockers:
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.version={{ replace .Version "+" "-" }}
# yamllint disable-line rule:line-length
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- '{{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}-amd64'
- '{{ .Env.DOCKER_IMAGE }}:{{ replace .Version "+" "-" }}-amd64'
# yamllint disable-line rule:line-length
- '{{ .Env.DOCKER_IMAGE }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-amd64'
- dockerfile: _build/Dockerfile.akash
- dockerfile: _build/akash.Dockerfile
use: buildx
goarch: arm64
goos: linux
Expand All @@ -149,11 +166,13 @@ dockers:
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.version={{ replace .Version "+" "-" }}
# yamllint disable-line rule:line-length
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
image_templates:
- '{{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}-arm64'
- '{{ .Env.DOCKER_IMAGE }}:{{ replace .Version "+" "-" }}-arm64'
# yamllint disable-line rule:line-length
- '{{ .Env.DOCKER_IMAGE }}:{{if eq .Env.STABLE "true"}}stable{{else}}latest{{end}}-arm64'
docker_manifests:
- name_template: "{{ .Env.DOCKER_IMAGE }}:{{ .ShortCommit }}"
Expand Down
3 changes: 2 additions & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ template: testify
template-data:
unroll-variadic: true
packages:
pkg.akt.dev/node/testutil/cosmos:
pkg.akt.dev/node/v2/testutil/cosmos:
config:
dir: testutil/cosmos/mocks
interfaces:
AuthzKeeper: {}
AccountKeeper: {}
BankKeeper: {}
TakeKeeper: {}
Loading
Loading