From 391af28ecdacfd943dedff47459980672f97d923 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Wed, 3 May 2023 18:52:55 -0700 Subject: [PATCH 1/3] [CI][GHA]CMPLRTOOLS-29605: Add clang-format for CI Signed-off-by: Xiaodong Li --- .github/workflows/ci_lin.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci_lin.yml b/.github/workflows/ci_lin.yml index 06e360b3e..057dc9b9e 100644 --- a/.github/workflows/ci_lin.yml +++ b/.github/workflows/ci_lin.yml @@ -13,6 +13,24 @@ env: jobs: + lint: + runs-on: build + 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://$FACELESS_TOKEN@github.com/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 From c9419acfca4a75534fb05a5cce70bb48b4fa0318 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Wed, 3 May 2023 19:00:57 -0700 Subject: [PATCH 2/3] Update runner tag Signed-off-by: Xiaodong Li --- .github/workflows/ci_lin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_lin.yml b/.github/workflows/ci_lin.yml index 057dc9b9e..582215620 100644 --- a/.github/workflows/ci_lin.yml +++ b/.github/workflows/ci_lin.yml @@ -14,7 +14,7 @@ env: jobs: lint: - runs-on: build + runs-on: lin_ci_test steps: - name: 'PR commits + 1' run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" From 2557068d20711ecc68cd5a66e02b6a708d25f8dd Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Wed, 3 May 2023 19:03:33 -0700 Subject: [PATCH 3/3] Update format error Signed-off-by: Xiaodong Li --- .github/workflows/ci_lin.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_lin.yml b/.github/workflows/ci_lin.yml index 582215620..9f434c300 100644 --- a/.github/workflows/ci_lin.yml +++ b/.github/workflows/ci_lin.yml @@ -24,10 +24,10 @@ jobs: 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://$FACELESS_TOKEN@github.com/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic + env: + FACELESS_TOKEN: ${{ secrets.GH_CI_NSTESTER_TOKEN }} + run: | + git clone https://$FACELESS_TOKEN@github.com/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic - name: Run clang-format uses: ./c2s.src/devops/actions/clang-format