Skip to content

✨ Gate-level layout file reader and writer #1172

✨ Gate-level layout file reader and writer

✨ Gate-level layout file reader and writer #1172

Workflow file for this run

name: ClangFormat Linter
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
clangformat:
runs-on: ubuntu-latest
name: ClangFormat
steps:
- name: Clone Repository (for push events)
if: ${{ github.event_name == 'push' }}
# regular checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Clone Repository (for PR events)
if: ${{ github.event_name == 'pull_request' }}
# PR checkout
uses: actions/checkout@v4
with:
# checkout the repository the branch is coming from
repository: ${{ github.event.pull_request.head.repo.full_name }}
# prevent checkout in detached head state
ref: ${{ github.event.pull_request.head.ref }}
submodules: recursive
- name: Run ClangFormat
uses: DoozyX/[email protected]
with:
source: 'include test experiments'
extensions: 'hpp,cpp'
clangFormatVersion: 16.0.3
inplace: True
- uses: EndBug/add-and-commit@v9
with:
add: 'include test experiments'
commit: '--signoff'
message: ':art: ClangFormat changes'
author_name: ClangFormat
author_email: [email protected]