Skip to content

Commit 08e1981

Browse files
committed
CI: Enable the verbose mode in the mkmf.rb by env MAKEFLAGS.
Enable the verbose option (variable `V`) in the `Makefile` generated by `mkmf.rb` to print the compiling commands in the process of the `rake compile` by setting the environment variable `MAKEFLAGS`[1] reserved by `make`. Because it's helpful to see what compiler warnings are checked. It seems that this implementation to enable the verbose mode only works in Linux and macOS. Not Windows. [1] https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html
1 parent 121b3b2 commit 08e1981

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
- name: depends
4343
run: bundle install
4444

45+
# Enable the verbose option in mkmf.rb to print the compiling commands.
46+
- name: enable mkmf verbose
47+
run: echo "MAKEFLAGS=V=1" >> $GITHUB_ENV
48+
if: runner.os == 'Linux' || runner.os == 'macOS'
49+
4550
- name: compile
4651
run: rake compile -- --enable-debug
4752

@@ -129,6 +134,10 @@ jobs:
129134
- name: depends
130135
run: bundle install
131136

137+
- name: enable mkmf verbose
138+
run: echo "MAKEFLAGS=V=1" >> $GITHUB_ENV
139+
if: runner.os == 'Linux' || runner.os == 'macOS'
140+
132141
- name: compile
133142
run: rake compile -- --enable-debug --with-openssl-dir=$HOME/.openssl/${{ matrix.openssl }}
134143

0 commit comments

Comments
 (0)