-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 929 Bytes
/
rust-base.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
name: Build, Test & Check Formatting
on:
push:
branch: master
pull_request:
branch: master
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install valgrind
run: |
pushd $(mktemp --directory)
curl --silent https://sourceware.org/pub/valgrind/valgrind-3.22.0.tar.bz2 | tar --extract --bzip2 --verbose --file=-
cd valgrind-3.22.0
./configure
make
sudo make install
popd
- name: Build without default features
run: cargo build --no-default-features
- name: Build with all features
run: cargo build --all-features
- name: Run tests without default features
run: cargo test --no-default-features
- name: Run tests with all features
run: cargo test --all-features
- name: Check formatting
run: cargo fmt -- --check