verilog_data-1 / The-OpenROAD-Project_OpenROAD /.github /workflows /github-actions-format-on-push.yml
Add batch 1 (YosysHQ_picorv32, alexforencich_verilog-ethernet, The-OpenROAD-Project_OpenROAD, darklife_darkriscv, corundum_corundum)
f61bac1 verified Download The-OpenROAD-Project_OpenROAD/.github/workflows/github-actions-format-on-push.yml from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD/.github/workflows/github-actions-format-on-push.yml
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD/.github/workflows/github-actions-format-on-push.yml
-
curl -L -o github-actions-format-on-push.yml https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD/.github/workflows/github-actions-format-on-push.yml
1.06 kB
| name: Format Code with pre commit trigger | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| Clang-Format: | |
| runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }} | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 | |
| - name: Check format of cpp changed files | |
| run: | | |
| clang-format --version | |
| for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
| if [[ "${file##*.}" =~ ^(h|C|cc|cp|cpp|c++|CPP|cxx|hh)$ \ | |
| && "${file}" != "src/sta/"* \ | |
| && "${file}" != "src/odb/src/codeGenerator/"* \ | |
| && "${file}" != "third-party/"* ]]; then | |
| clang-format --dry-run --Werror $file | |
| fi | |
| done | |