-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (33 loc) · 1 KB
/
Copy pathci.yml
File metadata and controls
36 lines (33 loc) · 1 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install build deps
# lance-encoding's build.rs invokes protoc to generate prost
# bindings. `protobuf-compiler` provides the `protoc` binary;
# `libprotobuf-dev` provides the well-known types (e.g.
# google/protobuf/empty.proto) under /usr/include/google/protobuf/
# that lance-encoding's .proto files import. Both are needed.
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
protobuf-compiler libprotobuf-dev
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: fmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy -- -D warnings
- name: test
run: cargo test