Skip to content

Commit

Permalink
Experiment: remove Belt from compiler repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Feb 24, 2024
1 parent 1bc9e03 commit 3b67616
Show file tree
Hide file tree
Showing 265 changed files with 104 additions and 67,386 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,36 +228,36 @@ jobs:
if: runner.os != 'Windows'
run: node scripts/ciTest.js -all

- name: Run gentype tests
if: runner.os != 'Windows'
run: make -C jscomp/gentype_tests/typescript-react-example clean test
# - name: Run gentype tests
# if: runner.os != 'Windows'
# run: make -C jscomp/gentype_tests/typescript-react-example clean test

- name: Run tests (Windows)
if: runner.os == 'Windows'
run: node scripts/ciTest.js -mocha -theme -format

# Build the playground compiler on the fastest runner (ubuntu-latest)
- name: Install JSOO
if: matrix.os == 'ubuntu-latest'
run: opam install js_of_ocaml.5.6.0

- name: Build playground compiler
if: matrix.os == 'ubuntu-latest'
run: |
opam exec -- node packages/playground-bundling/scripts/generate_cmijs.js
opam exec -- dune build --profile browser
cp ./_build/default/jscomp/jsoo/jsoo_playground_main.bc.js playground/compiler.js
- name: Test playground compiler
if: matrix.os == 'ubuntu-latest'
run: node playground/playground_test.js

- name: Upload playground compiler to CDN
if: ${{ matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v') }}
env:
KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
run: bash playground/upload_bundle.sh
# # Build the playground compiler on the fastest runner (ubuntu-latest)
# - name: Install JSOO
# if: matrix.os == 'ubuntu-latest'
# run: opam install js_of_ocaml.5.6.0

# - name: Build playground compiler
# if: matrix.os == 'ubuntu-latest'
# run: |
# opam exec -- node packages/playground-bundling/scripts/generate_cmijs.js
# opam exec -- dune build --profile browser
# cp ./_build/default/jscomp/jsoo/jsoo_playground_main.bc.js playground/compiler.js

# - name: Test playground compiler
# if: matrix.os == 'ubuntu-latest'
# run: node playground/playground_test.js

# - name: Upload playground compiler to CDN
# if: ${{ matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v') }}
# env:
# KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
# KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
# run: bash playground/upload_bundle.sh

- name: Prepare artifact upload
run: node .github/workflows/get_artifact_info.js
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ test-syntax-roundtrip:
make reanalyze
bash ./scripts/testok.sh

test-gentype:
make -C jscomp/gentype_tests/typescript-react-example clean test
# test-gentype:
# make -C jscomp/gentype_tests/typescript-react-example clean test

test-all: test test-gentype
test-all: test # test-gentype

reanalyze:
reanalyze.exe -set-exit-code -all-cmt _build/default/jscomp -suppress jscomp/syntax/testrunner -exclude-paths jscomp/outcome_printer,jscomp/ounit_tests,jscomp/ml,jscomp/js_parser,jscomp/frontend,jscomp/ext,jscomp/depends,jscomp/core,jscomp/common,jscomp/cmij,jscomp/bsb_helper,jscomp/bsb
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3b67616

Please sign in to comment.