Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI][GHA]Add clang-format for CI #311

Open
wants to merge 3 commits into
base: SYCLomatic
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/ci_lin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ env:

jobs:

lint:
runs-on: lin_ci_test
steps:
- name: 'PR commits + 1'
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
- name: Checkout Source Repo
env:
FACELESS_TOKEN: ${{ secrets.GH_CI_NSTESTER_TOKEN }}
run: |
git clone https://[email protected]/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic
- name: Run clang-format
uses: ./c2s.src/devops/actions/clang-format

linux-test:
name: linux-test-${{ matrix.test_suite }}-cpu
runs-on: lin_ci_test
Expand Down