-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (45 loc) · 1.41 KB
/
rust.yml
File metadata and controls
59 lines (45 loc) · 1.41 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: system dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang libclang-dev llvm mold libncurses-dev build-essential
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: 1.85
components: clippy, rustfmt
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
token: ${{secrets.GITHUB_TOKEN}}
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
- name: Install Nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/bin
- name: Build
run: cargo build --all-features
- name: Test
run: cargo nextest run --all-features
- name: Test memvfs
run: |
cargo build --example memvfs --features dynamic
cat examples/test_memvfs.sql | sqlite3
- name: Clippy
uses: auguwu/clippy-action@94a9ff2f6920180b89e5c03d121d0af04a9d3e03 # 1.4.0
with:
token: ${{secrets.GITHUB_TOKEN}}
- name: Cargo fmt
run: cargo fmt --check
- name: Cargo doctests
run: cargo test --doc