macmon 0.7.0

Apple Silicon system monitor & Rust library — CPU/GPU power, temperature, RAM. No sudo. TUI, JSON pipe, Prometheus exporter.
Documentation
name: check

on:
  push:
    branches:
      - '**'
    tags-ignore:
      - 'v*'
    paths:
      - .github/workflows/*.yml
      - Cargo.toml
      - src/**

jobs:
  check:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/cache@v5
        with:
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/

      - run: rustup update --no-self-update stable && rustup default stable
      - run: cargo fmt --check
      - run: cargo check --release --locked

      - run: cargo build --release --locked
      - run: |
          cp target/release/macmon macmon
          tar czf macmon-${{ github.ref_name }}.tar.gz readme.md LICENSE macmon
          ls -lah | grep macmon
        id: archive

      - uses: actions/upload-artifact@v7
        with:
          name: macmon-${{ github.ref_name }}.tar.gz
          path: macmon-${{ github.ref_name }}.tar.gz
          retention-days: 7