Skip to content

Commit

Permalink
chore: release v0.20.1 (#2343)
Browse files Browse the repository at this point in the history
chore: release v0.20.1
  • Loading branch information
ilgooz authored Apr 13, 2022
2 parents 160a26c + e715b7a commit 0f7a843
Show file tree
Hide file tree
Showing 43 changed files with 4,293 additions and 551 deletions.
138 changes: 138 additions & 0 deletions .github/workflows/gen-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: Generate embedded binaries

on:
push:
branches:
- develop

jobs:
gen-nodetime:
name: "Generate nodetime binaries"
runs-on: ubuntu-latest
concurrency: gen-nodetime
steps:
- uses: actions/checkout@v2

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all

- uses: MOZGIII/install-ldid-action@v1
with:
tag: v2.1.5-procursus2

- uses: actions/setup-node@v2
with:
node-version: '16'

- run: ./scripts/gen-nodetime

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
title: "feat(nodetime): update binaries"
commit-message: "feat(nodetime): update binaries"
body: ""
branch: feat/gen-nodetime

gen-protoc:
name: "Generate protoc binaries"
runs-on: ${{ matrix.runner.runs-on }}
concurrency: gen-protoc-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
strategy:
fail-fast: false
matrix:
runner:
- runs-on: ubuntu-latest
os: linux
defaults-shell: bash
arch: amd64
- runs-on: [ self-hosted, linux, arm64 ]
os: linux
defaults-shell: bash
arch: arm64
- runs-on: [ self-hosted, macOS ]
os: darwin
defaults-shell: /usr/bin/arch -arch x86_64 /bin/bash -l {0}
arch: amd64
- runs-on: [ self-hosted, macOS ]
os: darwin
defaults-shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
arch: arm64
defaults:
run:
shell: ${{ matrix.runner.defaults-shell }}
steps:
- uses: actions/checkout@v2

- run: |
if [[ "${{ matrix.runner.os }}" == "darwin" ]]; then
brew install jq autoconf automake libtool
else
sudo apt install -y jq autoconf automake libtool curl make g++ unzip
fi
- name: Build protoc files
run: ./scripts/gen-protoc

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "feat(protoc): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
commit-message: "feat(protoc): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
body: ""
branch: feat/gen-protoc-${{ matrix.runner.os }}-${{ matrix.runner.arch }}


gen-protoc-gen-dart:
name: "Generate protoc dart binaries"
runs-on: ${{ matrix.runner.runs-on }}
concurrency: gen-protoc-gen-dart-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
strategy:
fail-fast: false
matrix:
runner:
- runs-on: ubuntu-latest
dart-arch: x64
arch: amd64
os: linux
defaults-shell: bash
- runs-on: [self-hosted, linux, arm64]
dart-arch: arm64
arch: arm64
os: linux
defaults-shell: bash
- runs-on: [self-hosted, macOS]
dart-arch: arm64
arch: arm64
defaults-shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
os: darwin
- runs-on: [self-hosted, macOS]
dart-arch: x64
arch: amd64
defaults-shell: /usr/bin/arch -arch x86_64 /bin/bash -l {0}
os: darwin
defaults:
run:
shell: ${{ matrix.runner.defaults-shell }}
steps:
- uses: actions/checkout@v2

- uses: dart-lang/setup-dart@v1
with:
architecture: ${{ matrix.runner.dart-arch }}

- name: Generate Dart files
run: ./scripts/gen-protoc-gen-dart

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "feat(protoc-gen-dart): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
commit-message: "feat(protoc-gen-dart): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
body: ""
branch: feat/gen-protoc-gen-dart-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
34 changes: 0 additions & 34 deletions .github/workflows/gen-protoc-gen-dart.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand All @@ -44,6 +47,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ steps.prep.outputs.tags }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Delete the nightly release
uses: dev-drprasad/[email protected]
with:
tag_name: nightly
tag_name: v0.0.0-nightly
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -26,15 +26,15 @@ jobs:
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: nightly
custom_tag: v0.0.0-nightly
tag_prefix: ""

- name: Upsert the nightly release
uses: ncipollo/release-action@v1
with:
tag: nightly
tag: v0.0.0-nightly
name: nightly
body: "Install and move to bin: `curl https://get.ignite.com/cli@nightly! | bash`"
body: "Install and move the CLI to your bin directory: `curl https://get.ignite.com/cli@v0.0.0-nightly! | bash`"
prerelease: true

- name: Set up Go
Expand All @@ -52,10 +52,6 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
workdir: ${{ env.working-directory }}
# never versions always requires semver even with the use of --skip-validate flag.
# we need to avoid semver since nightly release updated everytime there is chance on develop branch.
# by avoiding semver, we prevent GOPROXY and pkg.go.dev to cache this tag.
version: v0.157.0
args: release --rm-dist --skip-validate -f .goreleaser.nightly.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
4 changes: 4 additions & 0 deletions .goreleaser.nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ builds:
- main: ./ignite/cmd/ignite
ldflags:
- -s -w -X github.com/ignite-hq/cli/ignite/version.Version={{.Tag}} -X github.com/ignite-hq/cli/ignite/version.Date={{.Date}} -X github.com/ignite-hq/cli/ignite/version.Head={{.FullCommit}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
changelog:
skip: true
release:
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ builds:
- main: ./ignite/cmd/ignite
ldflags:
- -s -w -X github.com/ignite-hq/cli/ignite/version.Version={{.Tag}} -X github.com/ignite-hq/cli/ignite/version.Date={{.Date}} -X github.com/ignite-hq/cli/ignite/version.Head={{.FullCommit}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## prep the base image.
#
FROM golang:1.18.0-buster as base
FROM golang:1.18.0-bullseye as base

RUN apt update && \
apt-get install -y \
Expand Down Expand Up @@ -41,7 +41,7 @@ COPY --from=builder /go/bin/ignite /usr/bin
WORKDIR /apps

# see docs for exposed ports:
# https://docs.starport.network/kb/config.html#host
# https://docs.ignite.com/kb/config.html#host
EXPOSE 26657
EXPOSE 26656
EXPOSE 6060
Expand Down
10 changes: 8 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Changelog

## [`v0.20.0`](https://github.com/ignite-hq/cli/releases/tag/v0.20.5)
## [`v0.20.1`](https://github.com/ignite-hq/cli/releases/tag/v0.20.1)

Our new name is **Ignite**!
### Features

- Release the CLI with Linux ARM and native M1 binaries

## [`v0.20.0`](https://github.com/ignite-hq/cli/releases/tag/v0.20.0)

Our new name is **Ignite CLI**!

**IMPORTANT!** This upgrade renames `starport` command to `ignite`. From now on, use `ignite` command to access the CLI.

Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = {
},
{
service: "linkedin",
url: "https://www.linkedin.com/company/ignite/",
url: "https://linkedin.com/company/ignt/",
},
{
service: "discord",
Expand Down
12 changes: 6 additions & 6 deletions docs/guide/blog/comment-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ func (k msgServer) CreateComment(goCtx context.Context, msg *types.MsgCreateComm

post := k.GetPost(ctx, msg.PostID)
postId := post.Id

// Check if the Post Exists for which a comment is being created
if msg.PostID == 0 {
return nil, sdkerrors.Wrapf(types.ErrID, "Post Blog Id does not exist for which comment with Blog Id %d was made", msg.PostID)
}

// Create variable of type comment
var comment = types.Comment{
Expand All @@ -173,12 +178,7 @@ func (k msgServer) CreateComment(goCtx context.Context, msg *types.MsgCreateComm
PostID: msg.PostID,
CreatedAt: ctx.BlockHeight(),
}

// Check if the Post Exists for which a comment is being created
if msg.PostID > postId && msg.PostID == postId {
return nil, sdkerrors.Wrapf(types.ErrID, "Post Blog Id does not exist for which comment with Blog Id %d was made", msg.PostID)
}


// Check if the comment is older than the Post. If more than 100 blocks, then return error.
if comment.CreatedAt > post.CreatedAt+100 {
return nil, sdkerrors.Wrapf(types.ErrCommentOld, "Comment created at %d is older than post created at %d", comment.CreatedAt, post.CreatedAt)
Expand Down
Loading

0 comments on commit 0f7a843

Please sign in to comment.