Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
579af1e5
Unverified
Commit
579af1e5
authored
4 years ago
by
jkrvivian
Browse files
Options
Downloads
Patches
Plain Diff
feat: Add script to build with the latest git tag and commit
parent
f3b76ae4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/build.sh
+9
-0
9 additions, 0 deletions
scripts/build.sh
with
9 additions
and
0 deletions
scripts/build.sh
0 → 100755
+
9
−
0
View file @
579af1e5
#!/bin/bash
#
# Builds GoShimmer with the latest git tag and commit hash (short)
# E.g.: ./goshimmer -v --> GoShimmer 0.3.0-f3b76ae4
latest_tag
=
$(
git describe
--tags
$(
git rev-list
--tags
--max-count
=
1
))
commit_hash
=
$(
git rev-parse
--short
HEAD
)
go build
-ldflags
=
"-s -w -X github.com/iotaledger/goshimmer/plugins/banner.AppVersion=
${
latest_tag
:1
}
-
$commit_hash
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment