-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
593 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,58 @@ | ||
# This workflow is useful if you want to automate the process of: | ||
# | ||
# a) Creating a new prelease when you push a new tag with a "v" prefix (version). | ||
# | ||
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases. | ||
# After the prerelease is created, you need to make your changes on the release page at the relevant | ||
# Github page and publish your release. | ||
# | ||
# b) Creating/updating the "latest" prerelease when you push to your default branch. | ||
# | ||
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users. | ||
# | ||
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your | ||
# default branch. | ||
name: pre-release | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- halo | ||
- serenity | ||
- euphoria | ||
|
||
jobs: | ||
might_release: | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
|
||
lint: | ||
uses: ./.github/workflows/golangci-lint.yml | ||
|
||
pre_release: | ||
needs: [test, lint] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "install go" | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19' | ||
- name: Set variables | ||
run: | | ||
VER=$(cat .VERSION)-${{ github.head_ref || github.ref_name }} | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: "build binary" | ||
run: go build -o aurad cmd/aurad/main.go | ||
- uses: mukunku/[email protected] | ||
id: checkTag | ||
with: | ||
tag: ${{ env.VERSION }} | ||
|
||
- name: exit | ||
if: ${{ steps.checkTag.outputs.exists == 'true'}} | ||
run: | | ||
echo ${{ steps.checkTag.outputs.exists }} | ||
exit 1 | ||
- name: Delete the "latest" Release | ||
- name: Delete the "latest" Pre-Release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
keep_latest: 0 | ||
delete_tag_pattern: ${{ github.head_ref || github.ref_name }} | ||
delete_tag_pattern: .*-${{ github.head_ref || github.ref_name }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set variables | ||
run: | | ||
VER=$(cat .VERSION) | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: Publish the Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ github.head_ref || github.ref_name }}_${{ env.VERSION }} | ||
prerelease: true | ||
target_commitish: ${{ github.head_ref || github.ref_name }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Publish the Pre-Release | ||
run: make release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,37 @@ | ||
# This workflow is useful if you want to automate the process of: | ||
# | ||
# a) Creating a new prelease when you push a new tag with a "v" prefix (version). | ||
# | ||
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases. | ||
# After the prerelease is created, you need to make your changes on the release page at the relevant | ||
# Github page and publish your release. | ||
# | ||
# b) Creating/updating the "latest" prerelease when you push to your default branch. | ||
# | ||
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users. | ||
# | ||
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your | ||
# default branch. | ||
name: release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
might_release: | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
|
||
lint: | ||
uses: ./.github/workflows/golangci-lint.yml | ||
|
||
release: | ||
needs: [test, lint] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "install go" | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.19' | ||
|
||
- name: "build binary" | ||
run: go build -o aurad cmd/aurad/main.go | ||
|
||
- name: Set variables | ||
run: | | ||
VER=$(cat .VERSION) | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Publish the Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: aura_${{ env.VERSION }} | ||
prerelease: false | ||
target_commitish: ${{ github.head_ref || github.ref_name }} | ||
run: make release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
before: | ||
hooks: | ||
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.LIBWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a | ||
- apk add musl-dev | ||
env: | ||
- CGO_ENABLED=1 | ||
builds: | ||
- id: aurad-linux-amd64 | ||
main: ./cmd/aurad | ||
binary: aurad | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
flags: | ||
- -mod=readonly | ||
- -trimpath | ||
ldflags: | ||
- -s -w | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=aura | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=aurad | ||
- -X github.com/cosmos/cosmos-sdk/version.Version=$(.Env.VERSION) | ||
- -X github.com/cosmos/cosmos-sdk/version.Commit=$(.Env.COMMIT) | ||
- -X github.com/cometbft/cometbft/version.TMCoreSemVer=$(.Env.BFT_VERSION) | ||
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=$(.Env.BUILD_TAGS_COMMA_SEP) | ||
- -linkmode=external | ||
- -extldflags '-Wl,-z,muldefs --static -lm' | ||
tags: | ||
- netgo | ||
- muslc | ||
release: | ||
prerelease: auto | ||
checksum: | ||
name_template: '{{ .ProjectName }}d_{{ .Env.VERSION }}_checksums.txt' | ||
archives: | ||
- id: binary | ||
builds: | ||
- aurad-linux-amd64 | ||
name_template: '{{ .ProjectName }}d' | ||
wrap_in_directory: false | ||
format: binary | ||
files: | ||
- none* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.