diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-22 08:07:30 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-22 08:07:30 +0900 |
| commit | ef46fb4840e6323cc22d426e7e60d524128583b4 (patch) | |
| tree | 5f5591095f1b3a7112a8f55a342ab791dcb34520 | |
| parent | 2aa22206be1da1b985be0a5f419f37829eec9bfd (diff) | |
| parent | 8e7a3a4df16646e097c7f52432e75f21e3a36861 (diff) | |
| download | mruby-ef46fb4840e6323cc22d426e7e60d524128583b4.tar.gz mruby-ef46fb4840e6323cc22d426e7e60d524128583b4.zip | |
Merge pull request #4654 from take-cheeze/mruby_version_lock
Take commit hash of mruby too
| -rw-r--r-- | Rakefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -126,7 +126,19 @@ task :all => depfiles do print_build_summary end - locks_result = { 'builds' => {} } + require 'mruby/source' + + locks_result = { + 'mruby_version' => { + 'version' => MRuby::Source::MRUBY_VERSION, + 'release_no' => MRuby::Source::MRUBY_RELEASE_NO + }, + 'builds' => {} + } + if File.exist? "#{MRUBY_ROOT}/.git" + locks_result['mruby_version']['git_commit'] = `git --git-dir '#{MRUBY_ROOT}/.git' --work-tree '#{MRUBY_ROOT}' rev-parse --verify HEAD`.strip + end + MRuby.each_target do locks_result['builds'][name] = locks end |
