-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (43 loc) · 1.29 KB
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
name: cargo tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
rust:
- stable
- 1.60 # msrv
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install build dependencies
run: >-
sudo apt-get install -y
autoconf
automake
build-essential
cmake
clang
libc6-dev-i386
libclang-dev
llvm-dev
zlib1g-dev
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Run bundled test
run: |
cargo build --verbose --features "bundled,openssl_bundled"
cargo run --manifest-path examples/hello/Cargo.toml --features "bundled,openssl_bundled" -- 5
- name: Run pkg-config test
run: |
sudo apt-get install -y libssl-dev libevent-dev
cargo clean
cargo build --no-default-features --features "openssl,pkgconfig,buildtime_bindgen"
cargo run --manifest-path examples/hello/Cargo.toml --no-default-features --features "openssl,pkgconfig,buildtime_bindgen" -- 5