File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121
121
run : rake ${{ matrix.entry.prerelease }}[${{ inputs.prerel_name }}]
122
122
if : ${{ inputs.prerel_name != '' && matrix.entry.prerelease != '' }}
123
123
- name : rake ${{ matrix.entry.task }}
124
- run : docker run -v "$GITHUB_WORKSPACE:/home/me/build" -w /home/me/build -e "RUBYWASM_UID=$(id -u)" -e "RUBYWASM_GID=$(id -g)" -e "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" ${{ steps.builder-image.outputs.imageid }} rake ${{ matrix.entry.task }}
124
+ run : docker run -v "$GITHUB_WORKSPACE:/home/me/build" -w /home/me/build -e "RUBYWASM_UID=$(id -u)" -e "RUBYWASM_GID=$(id -g)" -e "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" ${{ steps.builder-image.outputs.imageid }} rake --verbose ${{ matrix.entry.task }}
125
125
- name : rake ${{ matrix.entry.test }}
126
126
run : rake ${{ matrix.entry.test }}
127
127
if : ${{ matrix.entry.test != '' }}
Original file line number Diff line number Diff line change 5
5
module RubyWasm
6
6
# Build executor to run the actual build commands.
7
7
class BuildExecutor
8
+ def initialize ( verbose : false )
9
+ @verbose = verbose
10
+ end
11
+
8
12
def system ( *args , **kwargs )
9
- Kernel . system ( *args , **kwargs )
13
+ puts args . join ( " " )
14
+ if @verbose
15
+ out = kwargs [ :out ] || $stdout
16
+ else
17
+ out = IO . pipe [ 1 ]
18
+ end
19
+ Kernel . system ( *args , **kwargs , out : out )
10
20
end
11
21
12
22
def rm_rf ( list )
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ def initialize(
71
71
@crossruby . with_wasi_vfs @wasi_vfs
72
72
@crossruby . with_openssl @openssl
73
73
74
- executor = RubyWasm ::BuildExecutor . new
74
+ # Rake.verbose can be Object.new by default, so compare with true explicitly.
75
+ executor = RubyWasm ::BuildExecutor . new ( verbose : Rake . verbose == true )
75
76
76
77
desc "Cross-build Ruby for #{ @target } "
77
78
task name do
Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ module RubyWasm
222
222
end
223
223
224
224
class BuildExecutor
225
+ @verbose: bool
226
+
227
+ def initialize : (?verbose: bool ) -> void
225
228
def system : (*untyped , **untyped ) -> bool ?
226
229
def rm_rf : (FileUtils::pathlist list) -> void
227
230
def rm_f : (FileUtils::pathlist list) -> void
You can’t perform that action at this time.
0 commit comments