Skip to content

Commit

Permalink
Improve ci workflow (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning authored Oct 12, 2023
1 parent 67502ca commit ca06c83
Showing 1 changed file with 28 additions and 45 deletions.
73 changes: 28 additions & 45 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,66 +7,49 @@ on:
pull_request:

jobs:
cargo-fmt:
code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get latest version of stable rust
run: rustup update stable
- 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
cargo-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get latest version of stable rust
run: rustup update stable
- 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
needs: cargo-fmt
steps:
- uses: actions/checkout@v2
- name: Get latest version of stable rust
run: rustup update stable
- name: Run tests in release
run: cargo test --all --release --tests
release-tests-ubuntu-all-features:
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v2
- name: Get latest version of stable rust
run: rustup update stable
- 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 test --all --release --all-features
release-tests-ubuntu-ed25519:
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v2
- name: Get latest version of stable rust
run: rustup update stable
- name: Run tests in release
run: cargo test --all --release --features "ed25519" --tests
cargo-audit:
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v2
- name: Get latest version of stable rust
run: rustup update stable
- name: Get latest cargo audit
run: cargo install --force cargo-audit
- name: Run cargo audit to identify known security vulnerabilities reported to the RustSec Advisory Database
run: cargo audit
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@v2
- uses: actions/checkout@v3
- name: Check rustdoc links
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items

0 comments on commit ca06c83

Please sign in to comment.