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
store cli binaries as release assets #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a self-review to help other reviewers.
@@ -135,18 +135,18 @@ env: | |||
|
|||
$(INITIAL_BUILD): $(SOURCE_ID) | |||
@echo "# Running tests..." 1>&2 | |||
@$(RUN_TESTS_QUIET) | |||
@BIN_PATH="$@" ./dev/build initial > /dev/null | |||
@$(RUN_TESTS_QUIET) || exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ... || exit 1
lines are to ensure that we fail early when appropriate.
@for Z in $^; do echo $$Z; done | ||
@./dev/release/create $(RELEASE_ZIPS) || exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously release just listed the zips, now it creates a release including them as assets.
make changelog && \ | ||
$(MAKE) changelog && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sub-makes should always be called using $(MAKE)
as this preserves flags.
# Ensure TMPDIR is set. | ||
: "${TMPDIR:="${RUNNER_TEMP:-}"}" | ||
[[ -n "$TMPDIR" ]] || die "Neither TMPDIR nor RUNNER_TEMP is set." | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pattern is used all over the place. Locally TMPDIR
is appropriate, unfortunately it's not set on GitHub runners, so we need to use their RUNNER_TEMP
dir instead.
@@ -16,6 +16,8 @@ for TAG in "${TAGS[@]}"; do | |||
echo "$TAG" | |||
done | |||
|
|||
git fetch --force --all --tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures local tags match those on the remote.
Justification:
Also...
Summary:
Quality: