Skip to content

Commit

Permalink
Parameterize go version in our builds
Browse files Browse the repository at this point in the history
This is so sad
  • Loading branch information
fastfadingviolets committed Jul 11, 2024
1 parent 50be411 commit fe24f0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/actions/build-gaiad-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ inputs:
bot_token:
description: "The GitHub token for the bot."
required: true
go_version:
description: "The go version to download and use."
required: true
runs:
using: "composite"
steps:
Expand All @@ -35,8 +38,8 @@ runs:
- name: Install golang
shell: bash
run: |
wget -q https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
wget -q https://go.dev/dl/go${{ inputs.go_version }}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${{ inputs.go_version }}.linux-amd64.tar.gz
- name: Update PATH
shell: bash
Expand All @@ -48,7 +51,7 @@ runs:
shell: bash
run: |
go version
export GOTOOLCHAIN=go1.22.4
export GOTOOLCHAIN=go${{ inputs.go_version }}
git clone https://github.com/cosmos/gaia.git
cd gaia
git checkout ${{ inputs.ref }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/gaiad-linux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
version_regex:
description: "The regex to filter the version (e.g. '^v18')"
required: true
go_version:
description: "The go version to download and use."
default: "1.22.4"
# push:

jobs:
Expand Down Expand Up @@ -43,6 +46,7 @@ jobs:
remote_commit_sha: ${{ matrix.release }}
github_token: ${{ secrets.GITHUB_TOKEN }}
bot_token: ${{ secrets.HYPHA_BOT_ACTIONS_TOKEN }}
go_version: ${{ github.event.inputs.go_version }}
build-docker:
name: Build Docker image
runs-on: ubuntu-latest
Expand All @@ -68,5 +72,5 @@ jobs:
git-ref: ${{ matrix.release }}
github-organization: cosmos
github-repo: gaia
additional-args: "--go-version=1.22.3"
additional-args: "--go-version=${{ inputs.go_version }}"
heighliner-tag: v1.5.5

0 comments on commit fe24f0c

Please sign in to comment.