forked from Smoothieware/Smoothieware
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): fix versioning and uploading (#10)
We previously were uploading the contents of firmwarebin/ to s3 which as it turns out is a checked-in file that never changes. That is not what we want to do. Instead, - Remove firmwarebin/ as a checked-in file - Instead, use it as a directory containing the properly named build output - Copy built hex files into firmwarebin using the same value as the version string embedded in the build itself - Make that version string generation actually work properly when running on a checked out tag (which is a detached HEAD, which git show-ref doesn't like; instead, there's a bit of logic to check if we have a branch and if not use git describe) - Upload tha actual fresh build to s3 instead - Also, on tag, update the github release, since without the firmwarebin/ directory checked in it's nice to have somewhere to point to for stable builds - Because we need to use git symbolic-ref and git describe, check out the TRAVIS_BRANCH.
- Loading branch information
Showing
7 changed files
with
47 additions
and
23,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ debug | |
/win_install.log | ||
/linux_install.log | ||
/src/default_excludes.mk | ||
firmwarebin/ | ||
gcc-arm-none-eabi-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.