feat: custom tag names via type[@mel.tag "foo"] t = ..
#2728
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Opam Pipeline | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
# Prime the caches every Monday | |
- cron: 0 1 * * MON | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
# - windows-latest # for some reason windows build is not picking dune 3.5 | |
ocaml-compiler: | |
- ocaml-base-compiler.5.3.0~alpha1 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
path: melange | |
- name: Use Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: Install Homebrew dependencies | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install tree | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
- name: Install dependencies | |
working-directory: melange | |
run: | | |
opam update | |
make opam-install-test | |
- name: Clone melange-opam-template | |
run: | | |
git clone https://github.com/melange-re/melange-opam-template.git | |
cd melange-opam-template | |
- name: Install all deps | |
working-directory: melange-opam-template | |
run: | | |
opam install -y reason-react | |
npm install | |
- name: Build basic template | |
working-directory: melange-opam-template | |
run: | | |
opam exec -- dune build @react @node --profile=release --display=short | |
npm run bundle | |
- name: Run resulting .js files | |
working-directory: melange-opam-template | |
run: | | |
node ./_build/default/src/node/src/Hello.mjs |