File tree Expand file tree Collapse file tree 2 files changed +40
-42
lines changed Expand file tree Collapse file tree 2 files changed +40
-42
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
+ schedule :
9
+ # run weekly
10
+ - cron : ' 0 0 * * 0'
8
11
9
12
env :
10
13
CARGO_TERM_COLOR : always
11
14
12
15
jobs :
13
16
build :
14
-
17
+ strategy :
18
+ matrix :
19
+ rust :
20
+ - nightly
21
+ - beta
22
+ - stable
23
+ - 1.44.0
15
24
runs-on : ubuntu-latest
16
25
17
26
steps :
18
27
- uses : actions/checkout@v2
28
+ - name : Install Rust
29
+ run : rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
30
+
31
+ - name : Install Cap'n Proto
32
+ run : |
33
+ export DEBIAN_FRONTEND=noninteractive
34
+ sudo apt-get install -y capnproto libcapnp-dev
35
+
36
+ - name : Test with --no-default-features
37
+ run : |
38
+ cd capnp
39
+ cargo test --no-default-features
40
+ cd ../
41
+
19
42
- name : Build
20
- run : cargo build -p capnp
43
+ run : cargo build --all
44
+
21
45
- name : Run tests
22
- run : cargo test -p capnp
46
+ run : cargo test --all
47
+
48
+ - name : Run example
49
+ run : ./target/debug/addressbook write | ./target/debug/addressbook read
50
+
51
+ - name : Build in release mode
52
+ run : cargo build --all --release
53
+
54
+ - name : Test in release mode
55
+ run : cargo test --all --release
56
+
57
+ - name : Run benchmark
58
+ run : ./target/release/run_all_benchmarks target/release/benchmark
59
+
23
60
24
61
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments