-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.1 KB
/
ci.yml
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
50
51
52
name: Build and Test Suite
on:
push:
branches: [ "develop", "main" ]
pull_request:
branches: [ "develop", "main" ]
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
packages: none
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y libxapian-dev
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
toolchain: stable
components: clippy
- uses: actions/cache@v3
with:
key: cargo-${{ hashFiles('**/Cargo.lock') }}-ci
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args:
--all-targets
- uses: actions-rs/cargo@v1
with:
command: test
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: clippy
toolchain: stable