-
Notifications
You must be signed in to change notification settings - Fork 30
55 lines (53 loc) · 1.82 KB
/
build.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
50
51
52
53
54
55
name: build
on:
push:
branches:
- master
pull_request:
jobs:
code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
components: rustfmt, clippy
bins: cargo-audit
- name: Check formatting with cargofmt
run: cargo fmt -- --check
- name: Check for lint warnings
run: cargo clippy --all-features -- -D warnings
- name: Run cargo audit to identify known security vulnerabilities reported to the RustSec Advisory Database
run: cargo audit
release-tests-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
bins: cargo-nextest
- name: Run tests in release
run: cargo nextest run --all --release --tests
- name: Run tests in release ed25519
run: cargo nextest run --all --release --features "ed25519" --tests
- name: Run tests in release secp256k1
run: cargo nextest run --all --release --features "secp256k1" --tests
- name: Run tests in release rust-secp256k1
run: cargo nextest run --all --release --features "rust-secp256k1" --tests
- name: Run tests in release all features
run: cargo nextest run --all --release --all-features
check-rustdoc-links:
name: Check rustdoc intra-doc links
runs-on: ubuntu-latest
container:
image: rust
steps:
- uses: actions/checkout@v3
- name: Check rustdoc links
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items