Skip to content

Commit

Permalink
fixed build instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
miladz68 committed Jan 5, 2024
1 parent 954a2fb commit 668b696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,13 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push docker image
run: |
pwd
ls -la
cd coreumbridge-xrpl
pwd
ls -la
make push-relayer-docker
- name: Build release artifacts
run: |
pwd
ls -la
mkdir ~/release-build
cd ~/coreumbridge-xrpl
make build-relayer BUILD_DIR=~/release-build
cd coreumbridge-xrpl
make build-relayer-relase BUILD_DIR=~/release-build
make build-contract BUILD_DIR=~/release-build
sha256sum ~/release-build/* > checksums.txt
- name: Create release
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ GIT_VERSION:=$(shell git describe --tags --exact-match 2>/dev/null || git rev-pa

.PHONY: build-relayer
build-relayer:
cd $(RELAYER_DIR) && CGO_ENABLED=0 go build --trimpath -mod=readonly -ldflags '-extldflags=-static' -o $(BUILD_DIR)/coreumbridge-xrp-lrelayer ./cmd

.PHONY: build-relayer-release
build-relayer-release:
cd $(RELAYER_DIR) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build --trimpath -mod=readonly -ldflags '-extldflags=-static' -o $(BUILD_DIR)/relayer-linux-amd64 ./cmd
cd $(RELAYER_DIR) && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build --trimpath -mod=readonly -ldflags '-extldflags=-static' -o $(BUILD_DIR)/relayer-darwin-amd64 ./cmd
cd $(RELAYER_DIR) && CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build --trimpath -mod=readonly -ldflags '-extldflags=-static' -o $(BUILD_DIR)/relayer-darwin-arm64 ./cmd
Expand Down

0 comments on commit 668b696

Please sign in to comment.