Repository navigation
68 lines (57 loc) · 1.87 KB
/
Copy pathtest.yaml
File metadata and controls
68 lines (57 loc) · 1.87 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Rust CI
on:
pull_request:
branches:
- main
jobs:
test-core:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v4
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests
run: |
cargo test --verbose
run_examples:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
include:
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v4
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@nightly
- name: Build
run: |
cargo build --workspace
- name: Run examples
run: |
cargo run --manifest-path=sv1/Cargo.toml --example client_and_server 30
cargo run --manifest-path=sv2/framing-sv2/Cargo.toml --example sv2_frame
cargo run --manifest-path=sv2/codec-sv2/Cargo.toml --example unencrypted
cargo run --manifest-path=sv2/codec-sv2/Cargo.toml --example encrypted --features=noise_sv2
cargo run --manifest-path=sv2/binary-sv2/Cargo.toml --example encode_decode
cargo run --manifest-path=sv2/noise-sv2/Cargo.toml --example handshake
cargo run --manifest-path=sv2/extensions-sv2/Cargo.toml --example extensions_negotiation
cargo run --manifest-path=sv2/extensions-sv2/Cargo.toml --example worker_specific_hashrate_tracking