···66# events but only for the master branch
77on:
88 push:
99- branches: [ jsjsjs ]
1010- paths-ignore:
1111- - '**.md'
1212- - '**.txt'
1313- - '.git*'
1414- - 'doc/**'
1515- - 'emacs/**'
1616- - 'vim/**'
1717- pull_request:
1818- branches: [ jsjsjs ]
1919- paths-ignore:
2020- - '**.md'
2121- - '**.txt'
2222- - '.git*'
2323- - 'doc/**'
2424- - 'emacs/**'
2525- - 'vim/**'
2626- schedule:
2727- - cron: '0 12 */6 * *'
99+ branches: [ main ]
28102911# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3012jobs:
···3618 os:
3719 - ubuntu-latest
3820 ocaml-compiler:
3939- - 4.13.x
2121+ - 4.14.x
4022 # The type of runner that the job will run on
4123 runs-on: ${{ matrix.os }}
4224···47294830 - name: Set up OCaml ${{ matrix.ocaml-compiler }}
4931 uses: ocaml/setup-ocaml@v2
5050- if: runner.os != 'Windows'
5132 with:
5233 # Version of the OCaml compiler to initialise
5334 ocaml-compiler: ${{ matrix.ocaml-compiler }}
5454- opam-repositories: |
5555- default: https://github.com/ocaml/opam-repository.git
5656- beta: https://github.com/ocaml/ocaml-beta-repository.git
57355836 - name: Install dependencies
5937 run: |
6060- opam depext conf-jq --yes # opam depext bug
6161- opam pin menhirLib 20201216
6238 opam install . --deps-only --with-test
63396440 - name: Build and test in release mode
6541 run: opam exec -- make js
4242+6643 - name: Deploy
6744 uses: peaceiris/actions-gh-pages@v3
6845 with:
-83
.github/workflows/main.yml
···11-# This is a basic workflow to help you get started with Actions
22-33-name: CI
44-55-# Controls when the action will run. Triggers the workflow on push or pull request
66-# events but only for the master branch
77-on:
88- push:
99- branches: [ master ]
1010- paths-ignore:
1111- - '**.md'
1212- - '**.txt'
1313- - '.git*'
1414- - 'doc/**'
1515- - 'emacs/**'
1616- - 'vim/**'
1717- pull_request:
1818- branches: [ master ]
1919- paths-ignore:
2020- - '**.md'
2121- - '**.txt'
2222- - '.git*'
2323- - 'doc/**'
2424- - 'emacs/**'
2525- - 'vim/**'
2626- schedule:
2727- - cron: '0 12 */6 * *'
2828-2929-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3030-jobs:
3131- # This workflow contains a single job called "build"
3232- build:
3333- strategy:
3434- fail-fast: false
3535- matrix:
3636- os:
3737- - macos-latest
3838- - ubuntu-latest
3939- - windows-latest
4040- ocaml-compiler:
4141- - 4.13.x
4242- # The type of runner that the job will run on
4343- runs-on: ${{ matrix.os }}
4444-4545- # Steps represent a sequence of tasks that will be executed as part of the job
4646- steps:
4747- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
4848- - uses: actions/checkout@v3
4949-5050- - name: Set up OCaml ${{ matrix.ocaml-compiler }}
5151- uses: ocaml/setup-ocaml@v2
5252- if: runner.os != 'Windows'
5353- with:
5454- # Version of the OCaml compiler to initialise
5555- ocaml-compiler: ${{ matrix.ocaml-compiler }}
5656- opam-repositories: |
5757- default: https://github.com/ocaml/opam-repository.git
5858- beta: https://github.com/ocaml/ocaml-beta-repository.git
5959-6060- - name: Set up OCaml ${{ matrix.ocaml-compiler }}
6161- uses: ocaml/setup-ocaml@v2
6262- if: runner.os == 'Windows'
6363- with:
6464- # Version of the OCaml compiler to initialise
6565- ocaml-compiler: ${{ matrix.ocaml-compiler }}
6666- opam-repositories: |
6767- default: https://github.com/fdopen/opam-repository-mingw.git#opam2
6868- beta: https://github.com/ocaml/ocaml-beta-repository.git
6969-7070- - name: Install dependencies
7171- run: |
7272- opam depext conf-jq --yes # opam depext bug
7373- opam pin menhirLib 20201216
7474- opam install . --deps-only --with-test
7575-7676- - name: Build and test in release mode
7777- run: opam exec -- dune runtest -p merlin,dot-merlin-reader
7878-7979- - name: Build in dev mode to check parser changes
8080- if: matrix.os == 'ubuntu-latest'
8181- run: |
8282- opam exec -- dune build
8383- git diff --exit-code