Skip to content

Commit 7f6ad45

Browse files
authored
perf(ruby): make merged instruction appendix a direct target (#873)
Currently, producing the "merged instruction" .adoc file also builds the dependent PDF file. This can take some time. Since updating the "golden" reference instruction appendix .adoc file only requires building a new .adoc file, and this operation is relatively common, make that its own target. This builds much faster. Also, remove references to the "ASSEMBLY" variable, support for which was removed in #867.
1 parent 2e90018 commit 7f6ad45

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ namespace :chore do
6464

6565
sh "bundle update"
6666
end
67+
68+
desc "Update golden instruction appendix"
69+
task :update_golden_appendix do
70+
Rake::Task["gen:instruction_appendix_adoc"].invoke
71+
sh "mv #{$root}/gen/instructions_appendix/all_instructions.adoc #{$root}/backends/instructions_appendix/all_instructions.golden.adoc"
72+
end
6773
end
6874

6975
namespace :gen do

backends/instructions_appendix/tasks.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ file MERGED_INSTRUCTIONS_PDF.to_s => [
5353
end
5454

5555
namespace :gen do
56+
desc <<~DESC
57+
Generate the instruction appendix (merged .adoc)
58+
DESC
5659
task instruction_appendix_adoc: MERGED_INSTRUCTIONS_FILE.to_s
5760

5861
desc <<~DESC

0 commit comments

Comments
 (0)