-
Notifications
You must be signed in to change notification settings - Fork 29
51 lines (45 loc) · 1.24 KB
/
build.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
name: Aerospike Rust Client Tests
on:
push:
branches:
- master
- gh-actions
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
AEROSPIKE_HOSTS: 127.0.0.1:3000
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.rust }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustc --version
- name: Set up Aerospike Database
uses: reugn/github-action-aerospike@v1
- name: Clear cache
run: rm -rf target/debug/deps/*aerospike*
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build docs
run: rustdoc -L target/debug/deps/ --test README.md
- name: Clear cache
run: rm -rf target/debug/deps/*aerospike*
- name: Build - with serialization
run: cargo build --verbose --features "serialization"
- name: Run tests - with serialization
run: cargo test --verbose --features "serialization"
- name: Build docs - with serialization
run: rustdoc -L target/debug/deps/ --test README.md