ckb 0.205.0

CKB is the layer 1 of Nervos Network, a public/permissionless blockchain
name: ci_quick_checks_macos
concurrency:
  group: ci_quick_checks_macos-${{ 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_quick_checks_macos:
    name: ci_quick_checks_macos
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
    runs-on: macos-15
    steps:
      - name: Free up disk space
        run: |
          sudo rm -rf /Applications/Xcode_*.app
          sudo rm -rf /usr/local/lib/android
          brew cleanup
      - 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-
      - name: Run quick checks
        run: |
          brew unlink yq
          brew install grep gnu-sed bash python-yq go
          echo bash version:
          bash --version
          make check-cargotoml
          make check-whitespaces
          make check-dirty-rpc-doc
          make check-dirty-hashes-toml
          devtools/ci/check-cyclic-dependencies.py
          devtools/ci/check-relaxed.sh
        shell: bash
      - 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/"