Skip to content

Commit

Permalink
add LSIF action
Browse files Browse the repository at this point in the history
  • Loading branch information
rvantonder committed Jan 4, 2020
2 parents d291226 + 6eceaa9 commit 88f16d1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lsif.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: LSIF
on: [push, pull_request]
jobs:
build:
name: Build and push LSIF data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: OCaml setup
uses: avsm/setup-ocaml@master
with:
ocaml-version: '4.08.1'
- run: opam pin add comby.dev -n .
- run: opam depext -yt comby
- run: opam install -t . --deps-only
- run: opam pin add -y merlin-lsif https://github.com/rvantonder/merlin.git\#lsif
- run: opam pin add -y lsif-ocaml https://github.com/rvantonder/lsif-ocaml.git
- run: opam exec -- dune build
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v1
- run: opam exec -- lsif-ocaml-dump
# - run: opam exec -- lsif-ocaml -only-type-hovers > dump.lsif
- run: opam exec -- lsif-ocaml > dump.lsif
- name: Upload LSIF data
uses: sourcegraph/lsif-upload-action@master
continue-on-error: true
with:
endpoint: https://sourcegraph.com
github_token: ${{ secrets.GITHUB_TOKEN }}
file: dump.lsif

0 comments on commit 88f16d1

Please sign in to comment.