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>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
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 }}
|