Skip to content

Commit

Permalink
Add a file to build ICS chains correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
fastfadingviolets committed Oct 9, 2024
1 parent bdf5baa commit b31e33c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ics-linux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check out repo
uses: actions/checkout@v3
- name: Build and push Docker image
uses: strangelove-ventures/[email protected].2
uses: strangelove-ventures/[email protected].3
with:
chain: ics
tag: ${{ matrix.release }}
Expand All @@ -61,3 +63,4 @@ jobs:
github-repo: interchain-security
additional-args: "--go-version=1.22.8"
heighliner-tag: v1.7.0
chains-spec-file: ./ics-chains.yaml
19 changes: 19 additions & 0 deletions ics-chains.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is for heighliner to know how to build ics with interchain-security-sd and -cdd

- name: ics
github-organization: cosmos
github-repo: interchain-security
dockerfile: cosmos
build-target: |
export GOFLAGS='-buildmode=pie'
export CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2"
export CGO_LDFLAGS="-Wl,-z,relro,-z,now -fstack-protector"
go install -ldflags="$LDFLAGS" ./cmd/interchain-security-pd
go install -ldflags="$LDFLAGS" ./cmd/interchain-security-cd
go install -ldflags="$LDFLAGS" ./cmd/interchain-security-cdd
go install -ldflags="$LDFLAGS" ./cmd/interchain-security-sd
binaries:
- /go/bin/interchain-security-pd
- /go/bin/interchain-security-cd
- /go/bin/interchain-security-cdd
- /go/bin/interchain-security-sd

0 comments on commit b31e33c

Please sign in to comment.