-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: release local-ic binary on build (#805) * add release local-ic binary workflow * fix copy (cherry picked from commit d7e8dd3) # Conflicts: # local-interchain/go.mod # local-interchain/go.sum * go mod tidy --------- Co-authored-by: Reece Williams <31943163+Reecepbcups@users.noreply.github.com> Co-authored-by: Reece Williams <reecepbcups@gmail.com>
- Loading branch information
1 parent
82665fe
commit 99b000e
Showing
3 changed files
with
53 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: release binary | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
env: | ||
GO_VERSION: 1.21 | ||
|
||
jobs: | ||
release-static-binary: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout interchaintest | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup go ${{ env.GO_VERSION }} | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
# This must be go install vs make install as to not statically link the binary | ||
# to the worker node. | ||
- run: cd local-interchain && go mod tidy && go install ./... | ||
|
||
- run: cp $HOME/go/bin/local-ic ./local-ic | ||
- run: chmod +x ./local-ic | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ github.token }} | ||
files: | | ||
local-ic |
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