From 6a4fba634090d4158310a608a7a8c14dddda05eb Mon Sep 17 00:00:00 2001 From: Nick Snyder Date: Sat, 12 Oct 2024 22:00:42 -0700 Subject: [PATCH] switch to scip (#345) --- .github/workflows/lsif-go.yml | 15 --------------- .github/workflows/scip-go.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/lsif-go.yml create mode 100644 .github/workflows/scip-go.yml diff --git a/.github/workflows/lsif-go.yml b/.github/workflows/lsif-go.yml deleted file mode 100644 index 259cdbc..0000000 --- a/.github/workflows/lsif-go.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Sourcegraph code intelligence -on: - - push - -jobs: - lsif-go: - runs-on: ubuntu-latest - container: sourcegraph/lsif-go:latest - steps: - - uses: actions/checkout@v4 - - name: Generate LSIF data - run: lsif-go - - name: Upload LSIF data to Sourcegraph.com - run: src lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure - diff --git a/.github/workflows/scip-go.yml b/.github/workflows/scip-go.yml new file mode 100644 index 0000000..4c444d0 --- /dev/null +++ b/.github/workflows/scip-go.yml @@ -0,0 +1,23 @@ +name: Sourcegraph code intelligence +on: + - push + +jobs: + scip-go: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install scip-go + run: | + curl -L https://github.com/sourcegraph/scip-go/releases/download/v0.1.21/scip-go_0.1.21_linux_amd64.tar.gz -o scip-go.tar.gz --no-progress-meter + tar -xf scip-go.tar.gz + chmod +x ./scip-go + - name: Install src + run: | + curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o src --no-progress-meter + chmod +x ./src + - name: Generate SCIP data + run: ./scip-go + - name: Upload SCIP data to Sourcegraph.com + run: SRC_ACCESS_TOKEN=${{ secrets.SRC_ACCESS_TOKEN }} ./src code-intel upload -github-token=${{ secrets.GITHUB_TOKEN }} -no-progress +