Skip to content

Commit

Permalink
Fetch submodule in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Jan 28, 2024
1 parent 470ae3f commit 8e91a91
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0

- name: Setup emsdk
run: |
git clone https://github.com/emscripten-core/emsdk
cd emsdk
./emsdk install ${{ matrix.emscripten_version }}
./emsdk activate ${{ matrix.emscripten_version }}
./emsdk construct_env
- name: Build ruby
run: |
Expand All @@ -24,7 +31,7 @@ jobs:
cd ruby.wasm
./bin/setup
bundle exec rake compile
RUBY_WASM_ADDITIONAL_EXTS=io/console,io/wait RUBY_WASM_EMCC_LDFLAGS="-sASYNCIFY --js-library $DIR/node_modules/xterm-pty/emscripten-pty.js" bundle exec rake npm:ruby-head-wasm-emscripten:build
RUBY_WASM_ADDITIONAL_EXTS=io/console,io/wait RUBY_WASM_EMCC_LDFLAGS="-sASYNCIFY --js-library ${{ github.workspace }}/node_modules/xterm-pty/emscripten-pty.js" bundle exec rake npm:ruby-head-wasm-emscripten:build || find . -name config.log && find . -name config.log && cat ./build/wasm32-unknown-emscripten/ruby-head-wasm32-unknown-emscripten-full/config.log && false
- name: Build site
run: |
Expand Down

0 comments on commit 8e91a91

Please sign in to comment.