From b7853de366a7bf862e784f8234f155f397df1e48 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 22 Nov 2021 14:58:16 +0100 Subject: [PATCH] ci: use actions to generate and upload LSIF reports --- .github/workflows/check.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 41ab8116b..1e385455c 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -89,20 +89,13 @@ jobs: ~/.cargo/git/db key: ${{ runner.os }}-cargo-deps-msrv-${{ hashFiles('**/Cargo.lock') }} - - name: Download rust-analyzer and Sourcegraph CLI - run: | - mkdir -p "${HOME}/.local/bin" - curl -sL https://github.com/rust-analyzer/rust-analyzer/releases/download/2021-10-04/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip > "${HOME}/.local/bin/rust-analyzer" - curl -sL https://github.com/sourcegraph/src-cli/releases/download/3.32.0/src_linux_amd64 > "${HOME}/.local/bin/src" - chmod +x "${HOME}/.local/bin/rust-analyzer" "${HOME}/.local/bin/src" - echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Generate LSIF data - run: rust-analyzer lsif . > ./dump.lsif + uses: sourcegraph/lsif-rust-action@v0.1.0 - name: Upload LSIF data - run: | - src lsif upload -file=./dump.lsif -indexer=rust-analyzer -repo="github.com/${GITHUB_REPOSITORY}" -commit="${GITHUB_SHA}" -github-token="${{ secrets.GITHUB_TOKEN }}" + uses: sourcegraph/lsif-upload-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} rustfmt: