aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-05-22 20:21:57 +0200
committerJun Aruga <jaruga@redhat.com>2023-05-23 11:33:20 +0200
commita832f5cb98ee952a3e7ceeddf59065b9c1f430b4 (patch)
treefa56eae81452be3916a5e89094e8e4afa867a717 /.github
parent08b0ed7b8632aafbaed14ad5f2ce0d77866e3f67 (diff)
downloadruby-openssl-a832f5cb98ee952a3e7ceeddf59065b9c1f430b4.tar.gz
CI: Enable the verbose mode in the mkmf.rb.
Enable the verbose option in mkmf.rb to print the compiling commands in the process of the `rake compile`. Because it's helpful to see what compiler warnings are checked. The script only runs in Linux and macOS. Not Windows. Because the sh script doesn't work in Windows. For the syntax, see the reference.[1] Right now there is a way to configure Ruby with `--enable-mkmf-verbose` in this purpose. But there is no formal way to enable the verbose mode in runtime of Ruby. My intention is that this commit is a workaround for this purpose. [1] https://docs.github.com/en/actions/learn-github-actions/variables * Default environment variables - RUNNER_OS * Detecting the operating system
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 374447f8..cb33a8d2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -42,6 +42,11 @@ jobs:
- name: depends
run: bundle install
+ # Enable the verbose option in mkmf.rb to print the compiling commands.
+ - name: enable mkmf verbose
+ run: tool/enable-mkmf-verbose
+ if: runner.os == 'Linux' || runner.os == 'macOS'
+
- name: compile
run: rake compile -- --enable-debug
@@ -129,6 +134,10 @@ jobs:
- name: depends
run: bundle install
+ - name: enable mkmf verbose
+ run: tool/enable-mkmf-verbose
+ if: runner.os == 'Linux' || runner.os == 'macOS'
+
- name: compile
run: rake compile -- --enable-debug --with-openssl-dir=$HOME/.openssl/${{ matrix.openssl }}