Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
time: "00:00"
cooldown:
default-days: 14
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "monthly"
time: "00:00"
cooldown:
default-days: 14
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
time: "00:00"
cooldown:
default-days: 14

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "monthly"
time: "00:00"
cooldown:
default-days: 14
49 changes: 21 additions & 28 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
name: Security Audit

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

CARGO_TERM_COLOR: always
permissions: {}

jobs:
supply-chain:
name: 'cargo-audit'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install Rust toolchain
run: rustup toolchain install stable --no-self-update

- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
cache-on-failure: true

- name: Install cargo-audit
run: cargo install cargo-audit@0.22.0 --force --locked

- name: Check for audit warnings
run: cargo audit -D warnings
continue-on-error: true

- name: Check for vulnerabilities
run: cargo audit
audit:
name: cargo-audit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install cargo-audit
run: cargo install cargo-audit@0.22.1 --locked

- name: Check for audit warnings
run: cargo audit -D warnings
continue-on-error: true

- name: Check for vulnerabilities
run: cargo audit
63 changes: 63 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Performance Benchmark

on:
push:
pull_request:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:

permissions: {}
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
benchmark:
name: Run Performance Benchmarks
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup build cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1

- name: Setup cargo-rbmt
uses: rust-bitcoin/rust-bitcoin-maintainer-tools/.github/actions/setup-rbmt@6560b728ae6a81af9d92713b630ba26772fbd970

- name: Display system and commit information
env:
BRANCH_REF: ${{ github.ref_name }}
COMMIT_SHA: ${{ github.sha }}
run: |
echo "Rust version: $(rustc --version)"
echo "CPU cores: $(nproc)"
echo "Memory: $(free -h)"
echo "Branch: $BRANCH_REF"
echo "Commit: $COMMIT_SHA"
- name: Run Benchmarks
run: cargo rbmt bench

- name: Summarize Benchmark Results
run: |
echo "## Benchmark Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
find target/criterion -name "estimates.json" -path "*/new/*" | sort | while read -r f; do
name=$(echo "$f" | sed 's|target/criterion/||' | sed 's|/new/estimates.json||')
slope=$(jq '.slope.point_estimate' "$f")
echo "- \`$name\`: ${slope}ns" >> $GITHUB_STEP_SUMMARY
done
- name: Upload HTML reports
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: benchmark-html-reports-${{ github.run_number }}
path: target/criterion/
retention-days: 30
241 changes: 0 additions & 241 deletions .github/workflows/benchmarks.yml

This file was deleted.

Loading
Loading