name: 'Restore cache'
runs:
  using: "composite"
  steps:
    - name: Restore cached cppcheck
      id: cppcache
      uses: actions/cache@v4
      with:
        path: opendbc/safety/tests/misra/cppcheck/
        key: cppcheck-cache-${{ runner.os }}-${{ hashFiles('opendbc/safety/tests/misra/install.sh') }}
    - name: Set cache-hit output
      run: echo "cache-hit=${{ steps.cppcache.outputs.cache-hit }}" >> $GITHUB_OUTPUT
      shell: bash
