Improve local definition docs + add CI workflow
SCIP Index / index (push) Failing after 11s

- Add signature and arglists to local var documentation
- Resolve arglists at runtime since clojure-lsp doesn't provide them
- Add GitHub Actions workflow for SCIP indexing on push

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 17:41:14 -05:00
parent c434adda76
commit 685d1eaa93
3 changed files with 85 additions and 14 deletions
+47
View File
@@ -0,0 +1,47 @@
name: SCIP Index
on:
push:
branches: [main, master]
workflow_dispatch: # Allow manual trigger
jobs:
index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: latest
- name: Cache Clojure dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.clojure
key: ${{ runner.os }}-clojure-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-clojure-
- name: Install clojure-lsp
run: |
curl -fsSL https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/master/install | bash
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Generate SCIP index
run: clojure -M:run -p . -o index.scip
- name: Install Sourcegraph CLI
run: |
curl -fsSL https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
chmod +x /usr/local/bin/src
- name: Upload to Sourcegraph
run: src code-intel upload -file=index.scip
env:
SRC_ENDPOINT: ${{ secrets.SRC_ENDPOINT }}
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN }}