Skip to content

Commit

Permalink
Update axelar build bytecode and produce static binary (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Aug 30, 2022
1 parent 938e6e9 commit ca0ad12
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,31 @@
github-organization: axelarnetwork
github-repo: axelar-core
language: go
build-target: build
binaries:
- bin/axelard
pre-build: |
git clone https://github.com/axelarnetwork/solidity-cgp-gateway.git
cd solidity-cgp-gateway
git checkout v2.1.0
apk add --update npm jq
set -eux
apk add --update nodejs npm jq py3-pip
git clone -b v4.3.0 --single-branch https://github.com/axelarnetwork/axelar-cgp-solidity.git
cd axelar-cgp-solidity
npm ci
npm run build:prod
mv build/* ../contract-artifacts/gateway/
npm run build
npm run flatten
mkdir -p ../contract-artifacts/gateway
mv artifacts/* ../contract-artifacts/
cd ..
bash scripts/populate-bytecode.sh
make generate
VERSION=$(echo $(git describe --tags) | sed 's/^v//')
COMMIT=$(git log -1 --format='%H')
BUILD_TAGS=muslc
LDFLAGS="$LDFLAGS -X github.com/cosmos/cosmos-sdk/version.Name=axelar \
-X github.com/cosmos/cosmos-sdk/version.AppName=axelard \
-X github.com/cosmos/cosmos-sdk/version.Version=$VERSION \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$BUILD_TAGS" \
-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT"
go build -o ./bin/axelard -mod=readonly -tags "$BUILD_TAGS" -ldflags "$LDFLAGS" ./cmd/axelard
platforms:
- linux/amd64

# Basilisk
- name: basilisk
Expand Down

0 comments on commit ca0ad12

Please sign in to comment.