From 32b406846817eae42c8cbddb255a522b304d4fa2 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Fri, 27 Feb 2026 02:21:17 +0100 Subject: [PATCH] WASM: Upgrade to Emscripten 5.x --- .github/workflows/deploy.yml | 8 +++++++- .github/workflows/javascript.yml | 8 +++++++- CONTRIBUTING.md | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 714f1a270..41cf8bafa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,7 +46,13 @@ jobs: sudo apt update - name: Install APT dependencies - run: xargs sudo apt-get install -y --no-install-recommends < Aptfile + run: grep -v emscripten Aptfile | xargs sudo apt-get install -y --no-install-recommends + + - name: Setup Emscripten + uses: mymindstorm/setup-emsdk@v14 + with: + version: 5.0.2 + actions-cache-folder: emsdk-cache - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index dde99ea0e..78399be5e 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -38,7 +38,13 @@ jobs: sudo apt update - name: Install APT dependencies - run: xargs sudo apt-get install -y --no-install-recommends < Aptfile + run: grep -v emscripten Aptfile | xargs sudo apt-get install -y --no-install-recommends + + - name: Setup Emscripten + uses: mymindstorm/setup-emsdk@v14 + with: + version: 5.0.2 + actions-cache-folder: emsdk-cache - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 800b09de9..5247625b9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ If you encounter any issues when following along with this file please don't hes - [**Prism Ruby Parser v1.9.0**](https://github.com/ruby/prism/releases/tag/v1.9.0): We use Prism for Parsing the Ruby Source Code in the HTML+ERB files. - [**Ruby**](https://www.ruby-lang.org/en/): We need Ruby as a dependency for `bundler`. - [**Bundler**](https://bundler.io): We are using `bundler` to build [`prism`](https://github.com/ruby/prism) from source so we can build `herb` against it. -- [**Emscripten**](https://emscripten.org): For the WebAssembly build of `libherb` so it can be used in the browser using the [`@herb-tools/browser`](https://github.com/marcoroth/herb/blob/main/javascript/packages/browser) package. +- [**Emscripten 5**](https://emscripten.org): For the WebAssembly build of `libherb` so it can be used in the browser using the [`@herb-tools/browser`](https://github.com/marcoroth/herb/blob/main/javascript/packages/browser) package. - [**Doxygen**](https://www.doxygen.nl): For building the C-Reference documentation pages.