From 00c6d11bcd0db328bc932ba4a2efefeb7dbe723a Mon Sep 17 00:00:00 2001 From: retropikzel Date: Fri, 10 Jul 2026 09:13:59 +0300 Subject: [PATCH 1/7] Add emscripten build --- .github/workflows/CI.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 0f943a1d..014f5bdd 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -33,3 +33,12 @@ jobs: gcc - name: Build run: msys2 -c "make PLATFORM=msys" + emscripten-build: + name: emscripten-build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Install emscripten + run: sudo apt install -y emscripten + - name: Build + run: make js From 3f2b53e1d7f8f2b9f1e4f8110bac839285b2be7c Mon Sep 17 00:00:00 2001 From: retropikzel Date: Wed, 15 Jul 2026 17:37:17 +0300 Subject: [PATCH 2/7] Switch to building emscripten build with cmake --- .github/workflows/CI.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 014f5bdd..88c70ee7 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -41,4 +41,6 @@ jobs: - name: Install emscripten run: sudo apt install -y emscripten - name: Build - run: make js + run: | + emcmake cmake . + cmake --build . From 11e33b37561ad51d83f79f726127f771c31cdc67 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Fri, 17 Jul 2026 08:35:42 +0300 Subject: [PATCH 3/7] Update readme about emscripten build --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5630f5d3..6d60fcf1 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If you want to try out chibi-scheme without installing, be sure to set `LD_LIBRARY_PATH` (`DYLD_LIBRARY_PATH` on macOS) so it can find the shared libraries. -To make the emscripten build run `make js` (_not_ `emmake make js`). +To make the emscripten build run `emcmake cmake .` and `cmake --build .`. For more detailed documentation, run `make doc` and see the generated *doc/chibi.html* or read the [manual](http://synthcode.com/scheme/chibi/) From 25e929441b4f1bfaebdaa8482d3356a84900d8f0 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Sat, 18 Jul 2026 21:08:04 +0300 Subject: [PATCH 4/7] Add both cmake and make js emscripten builds --- .github/workflows/CI.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 88c70ee7..08a27231 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -33,8 +33,8 @@ jobs: gcc - name: Build run: msys2 -c "make PLATFORM=msys" - emscripten-build: - name: emscripten-build + cmake-emscripten-build: + name: cmake emscripten-build runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -44,3 +44,12 @@ jobs: run: | emcmake cmake . cmake --build . + make-emscripten-build: + name: make emscripten-build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Install emscripten + run: sudo apt install -y emscripten + - name: Build + run: make js From 0b6e5f559faabf3c996287d9be593cd28a96e88c Mon Sep 17 00:00:00 2001 From: retropikzel Date: Sun, 19 Jul 2026 17:33:48 +0300 Subject: [PATCH 5/7] Revert changes made into README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d60fcf1..f0d30f46 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If you want to try out chibi-scheme without installing, be sure to set `LD_LIBRARY_PATH` (`DYLD_LIBRARY_PATH` on macOS) so it can find the shared libraries. -To make the emscripten build run `emcmake cmake .` and `cmake --build .`. +To make the emscripten build run `make js` (not `emmake make js`). For more detailed documentation, run `make doc` and see the generated *doc/chibi.html* or read the [manual](http://synthcode.com/scheme/chibi/) From f1be986a33204dd17d2081b55b14a03779f14d8b Mon Sep 17 00:00:00 2001 From: retropikzel Date: Sun, 19 Jul 2026 17:34:19 +0300 Subject: [PATCH 6/7] Revert changes made into README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f0d30f46..5630f5d3 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If you want to try out chibi-scheme without installing, be sure to set `LD_LIBRARY_PATH` (`DYLD_LIBRARY_PATH` on macOS) so it can find the shared libraries. -To make the emscripten build run `make js` (not `emmake make js`). +To make the emscripten build run `make js` (_not_ `emmake make js`). For more detailed documentation, run `make doc` and see the generated *doc/chibi.html* or read the [manual](http://synthcode.com/scheme/chibi/) From 1b136c62a29a5bec34aaad3548813cde77486647 Mon Sep 17 00:00:00 2001 From: Retropikzel Date: Sun, 19 Jul 2026 17:48:53 +0300 Subject: [PATCH 7/7] Emscripten GitHub build2 (#1) * Fix make js build --- .github/workflows/CI.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 08a27231..b3a1f25a 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -49,7 +49,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - name: Install emscripten - run: sudo apt install -y emscripten - - name: Build - run: make js + - name: Install emsdk and build + run: | + sudo apt install -y git python3 cmake + git clone https://github.com/emscripten-core/emsdk.git + cd emsdk + ./emsdk install latest + ./emsdk activate latest + source ./emsdk_env.sh + cd .. + make js