-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.27 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
53
54
55
56
57
58
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-24.04
steps:
- name: install dependencies
run: |
sudo apt-get update && sudo apt-get install -y libxapian-dev libxapian30
- name: checkout
uses: actions/checkout@v3
- name: configure rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
toolchain: stable
components: clippy
- name: configure build cache
uses: actions/cache@v3
with:
key: cargo-${{ hashFiles('**/Cargo.lock') }}-ci
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: cargo build
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: build
args:
--all-targets
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
toolchain: stable
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
toolchain: stable