From b31e33cf58e8f750ec5771cda301f03c4c104e02 Mon Sep 17 00:00:00 2001 From: violet Date: Wed, 9 Oct 2024 16:44:37 -0400 Subject: [PATCH] Add a file to build ICS chains correctly --- .github/workflows/ics-linux-release.yml | 5 ++++- ics-chains.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 ics-chains.yaml diff --git a/.github/workflows/ics-linux-release.yml b/.github/workflows/ics-linux-release.yml index 46bb587..03b8c19 100644 --- a/.github/workflows/ics-linux-release.yml +++ b/.github/workflows/ics-linux-release.yml @@ -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/heighliner-build-action@v1.0.2 + uses: strangelove-ventures/heighliner-build-action@v1.0.3 with: chain: ics tag: ${{ matrix.release }} @@ -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 diff --git a/ics-chains.yaml b/ics-chains.yaml new file mode 100644 index 0000000..beb80d2 --- /dev/null +++ b/ics-chains.yaml @@ -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