Skip to content

Commit 262f3bc

Browse files
committed
merging with main
2 parents 932e768 + 49a6f38 commit 262f3bc

File tree

850 files changed

+128804
-33803
lines changed

Some content is hidden

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

850 files changed

+128804
-33803
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Create release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out repository code
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
ref: ${{ github.event.inputs.release_tag }}
21+
22+
- name: Make release
23+
run: |
24+
sudo rm -rf dist
25+
make release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
name: Deploy in devnet
1+
name: DevNet deploy
22
on:
33
workflow_dispatch:
4-
# push:
5-
# branches:
6-
# - main
74

85
jobs:
96
deploy:
107
runs-on: ubuntu-latest
118
concurrency:
12-
group: deploy-devnet # Group for limiting concurrent runs
13-
cancel-in-progress: false # Queue new jobs instead of canceling if one is already running
9+
group: deploy-devnet # Group for limiting concurrent runs
10+
cancel-in-progress: false # Queue new jobs instead of canceling if one is already running
1411
environment: devnet
1512
env:
1613
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
@@ -19,6 +16,7 @@ jobs:
1916
VERSION:
2017
BINARY:
2118
DBENGINE: pebbledb
19+
COSMWASM_VERSION:
2220
NAME_WITH_VERSION:
2321
steps:
2422
- name: Checking repository
@@ -40,21 +38,30 @@ jobs:
4038
- name: Setuping go
4139
uses: actions/setup-go@v5
4240
with:
43-
go-version: "1.22"
41+
go-version: "1.23"
4442
- name: Building elys binary
43+
env:
44+
CGO_ENABLED: 1
4545
run: |
4646
echo Building elysd binary
47+
48+
COSMWASM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | sed 's/.* //')
49+
echo $COSMWASM_VERSION
50+
51+
sudo wget https://github.com/CosmWasm/wasmvm/releases/download/${COSMWASM_VERSION}/libwasmvm_muslc.x86_64.a -O /usr/lib/libwasmvm.x86_64.a
4752
48-
sudo GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -mod=readonly -trimpath -o elysd -ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=${NAME} \
53+
sudo GOOS=linux GOARCH=amd64 go build -mod=readonly -trimpath -o elysd -ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=${NAME} \
4954
-X github.com/cosmos/cosmos-sdk/version.AppName=${NAME} \
5055
-X github.com/cosmos/cosmos-sdk/version.ServerName=${BINARY} \
5156
-X github.com/cosmos/cosmos-sdk/version.ClientName=${BINARY} \
5257
-X github.com/cosmos/cosmos-sdk/version.Version=${VERSION} \
5358
-X github.com/cosmos/cosmos-sdk/version.Commit=${COMMIT} \
5459
-X github.com/cosmos/cosmos-sdk/types.DBBackend=${DBENGINE} \
5560
-X github.com/elys-network/elys/app.NextVersion=${VERSION} \
56-
-X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,osusergo,${DBENGINE} \
57-
" -tags "ledger,${DBENGINE}" ./cmd/${BINARY}
61+
-X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo,${DBENGINE} \
62+
-w -s \
63+
-linkmode=external \
64+
-extldflags '-Wl,-z,muldefs -static -lm'" -tags "ledger,${DBENGINE}" ./cmd/${BINARY}
5865
echo "Version of elysd: $(./elysd version)"
5966
- name: Compressing elys binary
6067
run: |
@@ -94,13 +101,13 @@ jobs:
94101
# environment variables
95102
ELYSD=/tmp/elysd
96103
NODE=https://rpc.devnet.elys.network:443
97-
OPTIONS="--node $NODE --chain-id elysdevnet-1 --keyring-backend=test -b=sync --fees=100000uelys --gas=300000 -y"
104+
OPTIONS="--node $NODE --chain-id elysics-1 --keyring-backend=test -b=sync --fees=100000uelys --gas=300000 -y"
98105
99106
# save private keys to files
100107
echo "${{ secrets.PRIVATE_KEY_FUJI }}" > /tmp/private_key_fuji.txt
101108
echo "${{ secrets.PRIVATE_KEY_MALLORCA }}" > /tmp/private_key_mallorca.txt
102109
echo "${{ secrets.PRIVATE_KEY_BORA }}" > /tmp/private_key_bora.txt
103-
110+
104111
# recover keys
105112
echo "${{ secrets.PASSPHRASE_FUJI }}" | $ELYSD keys import fuji --keyring-backend test /tmp/private_key_fuji.txt
106113
echo "${{ secrets.PASSPHRASE_MALLORCA }}" | $ELYSD keys import mallorca --keyring-backend test /tmp/private_key_mallorca.txt
@@ -116,10 +123,11 @@ jobs:
116123
$ELYSD software-upgrade-tx \
117124
${{env.VERSION}} \
118125
$height \
119-
10000000uelys \
126+
50000000uelys \
120127
"Elys Network version ${{env.VERSION}} released. Focuses on enhancements and codebase improvements." \
121128
"{\"binaries\":{\"linux/amd64\":\"https://snapshots.elys.network/releases/${{env.NAME_WITH_VERSION}}.tar.gz\"}}" \
122-
--from=mallorca \
129+
true \
130+
--from=fuji \
123131
$OPTIONS | extract_txhash
124132
)
125133
sleep 10
@@ -133,6 +141,6 @@ jobs:
133141
134142
# vote on proposal
135143
$ELYSD tx gov vote $proposalid yes --from=fuji $OPTIONS
136-
$ELYSD tx gov vote $proposalid yes --from=mallorca $OPTIONS
144+
#$ELYSD tx gov vote $proposalid yes --from=mallorca $OPTIONS
137145
$ELYSD tx gov vote $proposalid yes --from=bora $OPTIONS
138-
sleep 10
146+
sleep 10

.github/workflows/release.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)