Skip to content

Commit 8a5de48

Browse files
committed
Build playground compiler in CI
1 parent 003d1b6 commit 8a5de48

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,22 @@ jobs:
209209
if: runner.os == 'Windows'
210210
run: node scripts/ciTest.js -mocha -theme -format
211211

212+
# Build the playground compiler on our fastest runner (macOS ARM)
213+
- name: Install JSOO
214+
if: matrix.os == 'macos-arm'
215+
run: opam install js_of_ocaml.4.0.0
216+
217+
- name: Build playground compiler
218+
if: matrix.os == 'macos-arm'
219+
run: |
220+
opam exec -- node packages/playground-bundling/scripts/generate_cmijs.js
221+
opam exec -- dune build --profile browser
222+
cp ./_build/default/jscomp/jsoo/jsoo_playground_main.bc.js playground/compiler.js
223+
224+
- name: Test playground compiler
225+
if: matrix.os == 'macos-arm'
226+
run: node playground/playground_test.js
227+
212228
- name: Prepare artifact upload
213229
run: node .github/workflows/get_artifact_info.js
214230

0 commit comments

Comments
 (0)