Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build osx binary and store artifact in release #1573

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,18 @@ jobs:
- run:
name: gzip
command: tar -zcvf ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz -C ${BUILD_DIR} wasmd
- run:
name: Build osx artifact
command: make build-osx
- run:
name: gzip
command: tar -zcvf ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-darwin-amd64.tar.gz -C ${BUILD_DIR} wasmd-darwin
- gh/setup:
token: GITHUB_CREDS
- run:
name: Create release
command: |
gh release create ${CIRCLE_TAG} ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz \
gh release create ${CIRCLE_TAG} ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-darwin-amd64.tar.gz \
--title "$CIRCLE_TAG" \
--draft \
--notes "# Wasmd ${CIRCLE_TAG} Release
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ else
go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd ./cmd/wasmd
endif

build-osx: go.sum
GOOS=darwin GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd-darwin ./cmd/wasmd

build-windows-client: go.sum
GOOS=windows GOARCH=amd64 go build -mod=readonly $(BUILD_FLAGS) -o build/wasmd.exe ./cmd/wasmd

Expand Down