Skip to content

Commit

Permalink
Make: Only ensure that git and Punch version match for a real release
Browse files Browse the repository at this point in the history
This enables the usage of release-build target during development and
testing since during that time those versions don't match.
  • Loading branch information
tjanez committed Oct 5, 2020
1 parent c7161c5 commit d7fb707
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ release-stable-branch: fetch-git
# Build and publish the next release.
release-build:
@$(ENSURE_VALID_RELEASE_BRANCH_NAME)
ifeq ($(OASIS_CORE_REAL_RELEASE), true)
@$(ENSURE_GIT_VERSION_EQUALS_PUNCH_VERSION)
endif
@$(ECHO) "$(CYAN)*** Building release version of oasis-core-runtime-loader...$(OFF)"
@CARGO_TARGET_DIR=target/default cargo build -p oasis-core-runtime-loader --release
@cp target/default/release/oasis-core-runtime-loader .
Expand Down

0 comments on commit d7fb707

Please sign in to comment.