Skip to content

Commit 167cdb0

Browse files
authored
chore: generate SCIP instead of LSIF (gogs#7445)
1 parent ada1083 commit 167cdb0

File tree

2 files changed

+38
-33
lines changed

2 files changed

+38
-33
lines changed

.github/workflows/lsif.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/scip.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: SCIP
2+
on:
3+
push:
4+
paths:
5+
- '**.go'
6+
- 'go.mod'
7+
- '.github/workflows/scip.yml'
8+
env:
9+
GOPROXY: "https://proxy.golang.org"
10+
11+
jobs:
12+
scip-go:
13+
if: github.repository == 'gogs/gogs'
14+
runs-on: ubuntu-latest
15+
container: sourcegraph/scip-go
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Set directory to safe for git
20+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
21+
- name: Get src-cli
22+
run: |
23+
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
24+
chmod +x /usr/local/bin/src
25+
- name: Generate SCIP data
26+
run: scip-go --no-animation
27+
- name: Upload SCIP data to sourcegraph.com
28+
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/gogs/gogs
29+
env:
30+
SRC_ENDPOINT: https://sourcegraph.com/
31+
- name: Upload SCIP data to S2
32+
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/gogs/gogs
33+
env:
34+
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/
35+
- name: Upload SCIP data to cs.unknwon.dev
36+
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/gogs/gogs
37+
env:
38+
SRC_ENDPOINT: https://cs.unknwon.dev/

0 commit comments

Comments
 (0)