Skip to content

Commit

Permalink
add clang auto-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
barnes88 authored Jul 12, 2024
1 parent 4d79e27 commit 98ec074
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/short-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,35 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
format-code:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
# Other steps that change files in the repository go here
#
- name: Run clang-format
run: |
sudo apt-get install -y clang-format
./gpu-simulator/format-code.sh
./util/tracer_nvbit/tracer_tool/format-code.sh
- uses: stefanzweifel/git-auto-commit-action@v5
with:
# Optional. Commit message for the created commit.
# Defaults to "Apply automatic changes"
commit_message: Automated clang-format
# Optional. Option used by `git-status` to determine if the repository is
# dirty. See https://git-scm.com/docs/git-status#_options
status_options: '--untracked-files=no'

SASS-Simulation:
runs-on: ubuntu-latest
container:
Expand Down

0 comments on commit 98ec074

Please sign in to comment.