Create rust.yml

This commit is contained in:
Andrey Vasnetsov 2023-02-20 11:58:32 +01:00 committed by GitHub
parent 986d880961
commit d0e1045e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 0 deletions

35
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install minimal stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Add rust analyzer
run: rustup component add rust-analyzer
- name: Run indexing
run: QDRANT_URL=${{ secrets.QDRANT_URL }} QDRANT_API_KEY=${{ secrets.QDRANT_API_KEY }} bash -x tools/index_qdrant.sh