Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bump go and remove buildjet #13674

Merged
merged 12 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
"C:x/upgrade":
- x/upgrade/**/*
"C:Cosmovisor":
- cosmovisor/**/*
- tools/cosmovisor/**/*
"C:Rosetta":
- contrib/rosetta/**/*
- tools/rosetta/**/*
"C:Keys":
- client/keys/**/*
"Type: Build":
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ concurrency:

jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
strategy:
matrix:
go-arch: ["amd64", "arm", "arm64"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: Build
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build
- name: Build Legacy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cosmovisor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
# get 'v*.*.*' part from 'cosmovisor/v*.*.*' and save to $GITHUB_ENV
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/cosmovisor/}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-update-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
token: ${{ secrets.PRBOT_PAT }}
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: Extract updated dependency
id: deps
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Dependency Review"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-go@v3
with:
# ci is set to go1.19 to match developer setups
go-version: 1.19
go-version: 1.19.2
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Create release
Expand All @@ -29,3 +29,22 @@ jobs:
args: release --rm-dist --release-notes ./RELEASE_NOTES.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-success:
needs: release
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- name: Notify Slack on success
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk
SLACK_USERNAME: Cosmos SDK Release Bot
SLACK_ICON: https://avatars.githubusercontent.com/t/5997665?size=64
SLACK_COLOR: good
SLACK_TITLE: "Cosmos SDK ${{ github.ref_name }} is tagged :tada:"
SLACK_MESSAGE: "@channel :point_right: https://github.com/cosmos/cosmos-sdk/releases/tag/${{ github.ref_name }}"
SLACK_FOOTER: ""
SLACK_LINK_NAMES: true
MSG_MINIMAL: true
24 changes: 12 additions & 12 deletions .github/workflows/sims-045.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ concurrency:

jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-sims')"
steps:
- uses: actions/checkout@v3
with:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- run: make build

install-runsim:
permissions:
contents: none
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3
Expand All @@ -41,15 +41,15 @@ jobs:
key: ${{ runner.os }}-go-runsim-binary

test-sim-import-export:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
with:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -59,15 +59,15 @@ jobs:
make test-sim-import-export

test-sim-after-import:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
with:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -77,7 +77,7 @@ jobs:
make test-sim-after-import

test-sim-multi-seed-short:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: [build, install-runsim]
timeout-minutes: 60
steps:
Expand All @@ -86,7 +86,7 @@ jobs:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -110,7 +110,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
Expand All @@ -129,7 +129,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/sims-046.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ concurrency:

jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-sims')"
steps:
- uses: actions/checkout@v3
with:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- run: make build

install-runsim:
permissions:
contents: none
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3
Expand All @@ -41,7 +41,7 @@ jobs:
key: ${{ runner.os }}-go-runsim-binary

test-sim-import-export:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: [build, install-runsim]
timeout-minutes: 60
steps:
Expand All @@ -50,7 +50,7 @@ jobs:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -60,15 +60,15 @@ jobs:
make test-sim-import-export

test-sim-after-import:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
with:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -78,15 +78,15 @@ jobs:
make test-sim-after-import

test-sim-multi-seed-short:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v3
with:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -110,7 +110,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
Expand All @@ -129,7 +129,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/sims-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
install-runsim:
permissions:
contents: none
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3
Expand All @@ -31,12 +31,12 @@ jobs:
key: ${{ runner.os }}-go-runsim-binary

test-sim-multi-seed-long:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.19.2
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -60,7 +60,7 @@ jobs:

- name: Notify Slack on success
if: ${{ steps.last_status.outputs.last_status == 'failure' }}
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
Expand All @@ -78,7 +78,7 @@ jobs:
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
uses: rtCamp/action-slack-notify@v2.2.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: cosmos-sdk-sims
Expand Down
Loading