aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2023-11-19 01:37:19 +0000
committerYuta Saito <kateinoigakukun@gmail.com>2023-11-23 03:16:20 +0900
commit7e9f00f34f4d89c749879872b36fa2c8bbf1d4c3 (patch)
tree7340c854a505f6b84937eeb18ef6c9cbd64ccf37 /.github/workflows
parent55cad1835ebd57117bc60c2bfc0f8d5ff08a9b64 (diff)
downloadruby-7e9f00f34f4d89c749879872b36fa2c8bbf1d4c3.tar.gz
[wasm] Build baseruby from the same revision for cross-compiling
> Note that on cross compiling BASERUBY should be the same version of the building ruby. > https://github.com/ruby/ruby/wiki/Developer-How-To#prerequisite
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/wasm.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml
index 8028faf70a..ed9902f966 100644
--- a/.github/workflows/wasm.yml
+++ b/.github/workflows/wasm.yml
@@ -102,10 +102,20 @@ jobs:
run: |
echo "WASI_SDK_PATH=/opt/wasi-sdk" >> $GITHUB_ENV
+ - name: Build baseruby
+ run: |
+ set -ex
+ mkdir ../baseruby
+ pushd ../baseruby
+ ../src/configure --prefix=$PWD/install
+ make
+ make install
+
- name: Run configure
run: |
../src/configure \
--host wasm32-unknown-wasi \
+ --with-baseruby=$PWD/../baseruby/install/bin/ruby \
--with-static-linked-ext \
--with-ext=bigdecimal,cgi/escape,continuation,coverage,date,dbm,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,fiber,gdbm,json,json/generator,json/parser,nkf,objspace,pathname,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor \
LDFLAGS=" \