@@ -55,7 +55,7 @@ namespace :wapm do
55
55
56
56
desc "Publish wapm package #{ pkg [ :name ] } "
57
57
task "#{ pkg [ :name ] } -publish" => [ "#{ pkg [ :name ] } -build" ] do
58
- Toolchain . check_executable ( "wapm" )
58
+ RubyWasm :: Toolchain . check_executable ( "wapm" )
59
59
sh "wapm publish" , chdir : pkg_dir
60
60
end
61
61
end
@@ -85,14 +85,14 @@ def release_note
85
85
|:-------:|:------:|
86
86
EOS
87
87
88
- BUILD_SOURCES . each do |source |
88
+ BUILD_SOURCES . each do |name , source |
89
89
case source [ :type ]
90
90
when "github"
91
91
url = "https://api.github.com/repos/#{ source [ :repo ] } /commits/#{ source [ :rev ] } "
92
92
commit = OpenURI . open_uri ( url ) do |f |
93
93
JSON . load ( f . read )
94
94
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 "
96
96
else
97
97
raise "unknown source type: #{ source [ :type ] } "
98
98
end
102
102
103
103
desc "Fetch artifacts of a run of GitHub Actions"
104
104
task :fetch_artifacts , [ :run_id ] do |t , args |
105
- Toolchain . check_executable ( "gh" )
105
+ RubyWasm :: Toolchain . check_executable ( "gh" )
106
106
107
107
artifacts = JSON . load ( %x(gh api repos/{owner}/{repo}/actions/runs/#{ args [ :run_id ] } /artifacts) )
108
108
artifacts = artifacts [ "artifacts" ] . filter { RELASE_ARTIFACTS . include? ( _1 [ "name" ] ) }
120
120
121
121
desc "Publish artifacts as a GitHub Release"
122
122
task :publish , [ :tag ] do |t , args |
123
- Toolchain . check_executable ( "gh" )
123
+ RubyWasm :: Toolchain . check_executable ( "gh" )
124
124
125
125
files = RELASE_ARTIFACTS . flat_map do |artifact |
126
126
Dir . glob ( "release/#{ artifact } /*" )
0 commit comments