forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.63 KB
/
lsif-go.yml
File metadata and controls
49 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: lsif-go
on:
push:
paths:
- '**.go'
jobs:
lsif-go:
# Skip running on forks
if: github.repository == 'sourcegraph/sourcegraph'
runs-on: ubuntu-latest
container: sourcegraph/lsif-go
strategy:
matrix:
root:
- ''
- lib
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2
# Run lsif-go
- name: Run lsif-go
working-directory: ${{ matrix.root }}
# --dep-batch-size=100 avoids loading all deps into memory and getting OOM killed
run: lsif-go --no-animation --dep-batch-size=100
# Upload lsif-go data to Dotcom, S2, Dogfood, and Demo instances
- name: Upload lsif-go dump to Dotcom
working-directory: ${{ matrix.root }}
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.com/
- name: Upload lsif-go dump to S2
working-directory: ${{ matrix.root }}
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/
- name: Upload lsif-go dump to Dogfood
working-directory: ${{ matrix.root }}
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://k8s.sgdev.org/
- name: Upload lsif-go dump to Demo
working-directory: ${{ matrix.root }}
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://demo.sourcegraph.com/