Skip to content

Commit 3f54501

Browse files
fix packaging regression introduced by refactoring
1 parent 7b26fbe commit 3f54501

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tasks/packaging.rake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace :wapm do
5555

5656
desc "Publish wapm package #{pkg[:name]}"
5757
task "#{pkg[:name]}-publish" => ["#{pkg[:name]}-build"] do
58-
Toolchain.check_executable("wapm")
58+
RubyWasm::Toolchain.check_executable("wapm")
5959
sh "wapm publish", chdir: pkg_dir
6060
end
6161
end
@@ -85,14 +85,14 @@ def release_note
8585
|:-------:|:------:|
8686
EOS
8787

88-
BUILD_SOURCES.each do |source|
88+
BUILD_SOURCES.each do |name, source|
8989
case source[:type]
9090
when "github"
9191
url = "https://api.github.com/repos/#{source[:repo]}/commits/#{source[:rev]}"
9292
commit = OpenURI.open_uri(url) do |f|
9393
JSON.load(f.read)
9494
end
95-
output += "| #{source[:name]} | [`#{source[:repo]}@#{commit["sha"]}`](https://github.com/ruby/ruby/tree/#{commit["sha"]}) |\n"
95+
output += "| #{name} | [`#{source[:repo]}@#{commit["sha"]}`](https://github.com/ruby/ruby/tree/#{commit["sha"]}) |\n"
9696
else
9797
raise "unknown source type: #{source[:type]}"
9898
end
@@ -102,7 +102,7 @@ end
102102

103103
desc "Fetch artifacts of a run of GitHub Actions"
104104
task :fetch_artifacts, [:run_id] do |t, args|
105-
Toolchain.check_executable("gh")
105+
RubyWasm::Toolchain.check_executable("gh")
106106

107107
artifacts = JSON.load(%x(gh api repos/{owner}/{repo}/actions/runs/#{args[:run_id]}/artifacts))
108108
artifacts = artifacts["artifacts"].filter { RELASE_ARTIFACTS.include?(_1["name"]) }
@@ -120,7 +120,7 @@ end
120120

121121
desc "Publish artifacts as a GitHub Release"
122122
task :publish, [:tag] do |t, args|
123-
Toolchain.check_executable("gh")
123+
RubyWasm::Toolchain.check_executable("gh")
124124

125125
files = RELASE_ARTIFACTS.flat_map do |artifact|
126126
Dir.glob("release/#{artifact}/*")

0 commit comments

Comments
 (0)