Skip to content

chore: release

chore: release #8850

name: ci_cargo_deny_ubuntu
concurrency:
group: ci_cargo_deny_ubuntu-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: ['**']
merge_group: {}
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: -D warnings
jobs:
ci_cargo_deny_ubuntu:
name: ci_cargo_deny_ubuntu
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ github.repository_owner == 'nervosnetwork' && 'self-hosted-ci-ubuntu-20.04' || 'ubuntu-22.04' }}
steps:
- name: Free up disk space
if: github.repository_owner != 'nervosnetwork'
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
- uses: actions/checkout@v4
- name: Cache cargo target
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/rc/'))
uses: actions/cache@v4
with:
path: target
key: ci-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
ci-${{ runner.os }}-cargo-
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.85.0
- run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev build-essential
- name: Run cargo deny checks
run: |
cargo deny --version || cargo +stable install cargo-deny --locked
make security-audit
make check-crates
make check-licenses
- name: Disk usage summary
if: always() && (github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/rc/')))
run: |
echo "=== Disk Space Summary ==="
df -h
echo ""
echo "=== Target Directory Usage ==="
du -sh target/ 2>/dev/null || echo "target/ directory not found"
du -sh target/*/ 2>/dev/null || echo "No subdirectories in target/"