mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-16 17:45:51 -05:00
Add workflow to build and profile third-party repo (#8398)
Merge pull request 8398
This commit is contained in:
14
.github/workflows/actions/memprof.rb
vendored
Normal file
14
.github/workflows/actions/memprof.rb
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'jekyll'
|
||||
require 'memory_profiler'
|
||||
|
||||
MemoryProfiler.report(allow_files: 'lib/jekyll/') do
|
||||
Jekyll::PluginManager.require_from_bundler
|
||||
Jekyll::Commands::Build.process({
|
||||
"source" => File.expand_path(ARGV[0]),
|
||||
"destination" => File.expand_path("#{ARGV[0]}/_site"),
|
||||
"disable_disk_cache" => true,
|
||||
})
|
||||
puts ''
|
||||
end.pretty_print(scale_bytes: true, normalize_paths: true)
|
||||
Reference in New Issue
Block a user