Skip to content

Commit 816b53f

Browse files
committed
Switch to Github Actions, because TravisCI is no longer free.
1 parent 018d7b7 commit 816b53f

File tree

2 files changed

+40
-42
lines changed

2 files changed

+40
-42
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,57 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
schedule:
9+
# run weekly
10+
- cron: '0 0 * * 0'
811

912
env:
1013
CARGO_TERM_COLOR: always
1114

1215
jobs:
1316
build:
14-
17+
strategy:
18+
matrix:
19+
rust:
20+
- nightly
21+
- beta
22+
- stable
23+
- 1.44.0
1524
runs-on: ubuntu-latest
1625

1726
steps:
1827
- 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+
1942
- name: Build
20-
run: cargo build -p capnp
43+
run: cargo build --all
44+
2145
- 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+
2360

2461

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)