Skip to content

Commit

Permalink
Merge pull request #39 from hyphacoop/fix/gaia-static
Browse files Browse the repository at this point in the history
Restore gaia static build
  • Loading branch information
fastfadingviolets authored Jan 20, 2025
2 parents 87bd6e9 + 077a829 commit d9cf4bd
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/actions/build-gaiad-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,8 @@ runs:
run: |
sudo apt install build-essential wget -y
- name: Install golang
shell: bash
run: |
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
run: |
echo "/usr/local/go/bin" >> $GITHUB_PATH
go version
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Clone and build Gaia
shell: bash
Expand All @@ -55,10 +46,8 @@ runs:
git clone https://github.com/cosmos/gaia.git
cd gaia
git checkout ${{ inputs.ref }}
export LDFLAGS="-extldflags=-static"
export CGO_ENABLED=0
make build
cp build/gaiad ~/gaiad-linux
make build-static-linux-amd64
cp build/gaiad-linux-amd64/gaiad ~/gaiad-linux
- name: Print gaia version
shell: bash
Expand All @@ -72,11 +61,11 @@ runs:
name: ${{ inputs.remote_commit_sha }}
bodyFile: .github/workflows/gaiad-linux-main-body.md
prerelease: true
replacesArtifacts: false
replacesArtifacts: true
allowUpdates: false
tag: ${{ inputs.release_name }}
token: ${{ inputs.github_token }}
skipIfReleaseExists: true
skipIfReleaseExists: false

- name: Dispatch to cosmos-release-testing repo
shell: bash
Expand Down

0 comments on commit d9cf4bd

Please sign in to comment.