Skip to content

Commit 719d955

Browse files
authoredMar 3, 2024
Merge pull request #635 from KiraCore/release/v0.3.42
release/v0.3.42 -> master
2 parents 8efe686 + aa8fe52 commit 719d955

File tree

6 files changed

+83
-32
lines changed

6 files changed

+83
-32
lines changed
 

‎.github/workflows/hook.yml

-28
This file was deleted.

‎.github/workflows/merge_hook.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
name: Release Merged Hook
3+
4+
on:
5+
pull_request:
6+
types: [closed]
7+
branches:
8+
- master
9+
10+
jobs:
11+
trigger-dispatch:
12+
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Extract Version from Branch Name
16+
id: version-extract
17+
run: |
18+
VERSION=$(echo "${{ github.event.pull_request.head.ref }}" | sed 's|release/v||')
19+
echo "VERSION=$VERSION" >> $GITHUB_ENV
20+
21+
- name: Trigger Repository Dispatch Event
22+
env:
23+
VERSION: ${{ env.VERSION }}
24+
run: |
25+
curl -X POST -H "Accept: application/vnd.github.v3+json" \
26+
-H "Authorization: Bearer ${{ secrets.REPO_ACCESS }}" \
27+
"https://api.github.com/repos/KiraCore/sekin/dispatches" \
28+
-d @- <<EOF
29+
{
30+
"event_type": "release_merged",
31+
"client_payload": {
32+
"version": "${VERSION}",
33+
"authors": "KIRA",
34+
"url": "https://kira.network",
35+
"documentation": "https://docs.kira.network",
36+
"source": "https://github.com/KiraCore/sekai",
37+
"vendor": "KiraCore",
38+
"licenses": "CC BY-NC-SA 4.0",
39+
"title": "sekai",
40+
"description": "SEKAI, KIRA's blockchain core, enhances Tendermint with Multi-Bonded Proof of Stake for staking diverse assets and KEX. It facilitates transactions and state transitions through Consensus Nodes, supported by off-chain modules like INTERX and RYOKAI for scalable execution and storage. As a hypermodular network hub, SEKAI streamlines user balance settlements, secures RollApp layers, and manages data/token transfers. It simplifies dApp deployment by enabling Consensus Nodes to act as Executors for RollApps, fostering a decentralized verification and execution system incentivized by KIRA’s liquidity protocols."
41+
}
42+
}
43+
EOF

‎Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DOCKER := $(shell which docker)
22

3-
.PHONY: all install go.sum test test-local lint proto-gen proto-gen-local build start publish
3+
.PHONY: all install go.sum test test-local lint proto-gen proto-gen-local build build-static start publish
44

55
all: install
66
install:
@@ -54,6 +54,9 @@ proto-check-breaking:
5454
build:
5555
./scripts/build.sh
5656

57+
build-static:
58+
./scripts/sbuild.sh
59+
5760
start:
5861
go run ./cmd/sekaid/main.go
5962

@@ -66,4 +69,4 @@ network-start:
6669
./scripts/test-local/network-start.sh
6770

6871
network-stop:
69-
./scripts/test-local/network-stop.sh
72+
./scripts/test-local/network-stop.sh

‎RELEASE.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Features:
22

3-
- Add flag for filtering only required modules for migration #630
3+
- Add webhook
4+
- Add static build
5+

‎scripts/sbuild.sh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
set -x
4+
. /etc/profile
5+
6+
LOCAL_PLATFORM="$(uname)" && LOCAL_PLATFORM="$(echo "$LOCAL_PLATFORM" | tr '[:upper:]' '[:lower:]' )"
7+
LOCAL_ARCH=$(([[ "$(uname -m)" == *"arm"* ]] || [[ "$(uname -m)" == *"aarch"* ]]) && echo "arm64" || echo "amd64")
8+
LOCAL_OUT="${GOBIN}/sekaid"
9+
10+
PLATFORM="$1" && [ -z "$PLATFORM" ] && PLATFORM="$LOCAL_PLATFORM"
11+
ARCH="$2" && [ -z "$ARCH" ] && ARCH="$LOCAL_ARCH"
12+
OUTPUT="$3" && [ -z "$OUTPUT" ] && OUTPUT="$LOCAL_OUT"
13+
14+
VERSION=$(./scripts/version.sh)
15+
COMMIT=$(git log -1 --format='%H')
16+
ldfName="-X github.com/cosmos/cosmos-sdk/version.Name=sekai"
17+
ldfAppName="-X github.com/cosmos/cosmos-sdk/version.AppName=sekaid"
18+
ldfVersion="-X github.com/cosmos/cosmos-sdk/version.Version=$VERSION"
19+
ldfCommit="-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT"
20+
ldfBuildTags="-X github.com/cosmos/cosmos-sdk/version.BuildTags=${PLATFORM},${ARCH}"
21+
22+
rm -fv "$OUTPUT" || echo "ERROR: Failed to wipe old sekaid binary"
23+
24+
go mod tidy
25+
GO111MODULE=on go mod verify
26+
27+
# Buld staic binary
28+
env CGO_ENABLED=0 GOOS=$PLATFORM GOARCH=$ARCH go build -ldflags "-extldflags '-static' ${ldfName} ${ldfAppName} ${ldfVersion} ${ldfCommit} ${ldfBuildTags}" -o "$OUTPUT" ./cmd/sekaid
29+
30+
( [ "$PLATFORM" == "$LOCAL_PLATFORM" ] && [ "$ARCH" == "$LOCAL_ARCH" ] && [ -f $OUTPUT ] ) && \
31+
echo "INFO: Sucessfully built SEKAI $($OUTPUT version)" || echo "INFO: Sucessfully built SEKAI to '$OUTPUT'"

‎types/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ package types
33
const (
44
// we set page iteration limit for safety
55
PageIterationLimit = 512
6-
SekaiVersion = "v0.3.41"
6+
SekaiVersion = "v0.3.42"
77
CosmosVersion = "v0.47.6"
88
)

0 commit comments

Comments
 (0)