From 7de2be57c39f8c48050e06b7ec8508f418010487 Mon Sep 17 00:00:00 2001 From: homksei Date: Fri, 13 Dec 2024 14:21:14 +0100 Subject: [PATCH 1/3] ci: move checks under actions --- .ci/pipeline/ci.yml | 34 +++++++++++++-------------- .github/workflows/skywalking-eyes.yml | 17 ++++++++++---- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/.ci/pipeline/ci.yml b/.ci/pipeline/ci.yml index 101d7d64c20..e7fafd61185 100755 --- a/.ci/pipeline/ci.yml +++ b/.ci/pipeline/ci.yml @@ -39,23 +39,23 @@ resources: ref: main endpoint: intel-daal-connection -jobs: -- job: 'FormatterChecks' - pool: - vmImage: '$(VM_IMAGE)' - steps: - - script: | - .ci/env/apt.sh clang-format - .ci/env/editorconfig-checker.sh - displayName: 'Install Dependencies' - - script: | - .ci/scripts/clang-format.sh - displayName: 'clang-format check' - failOnStderr: true - - script: | - editorconfig-checker - displayName: 'editorconfig-checker' - failOnStderr: true +# jobs: +# - job: 'FormatterChecks' +# pool: +# vmImage: '$(VM_IMAGE)' +# steps: +# - script: | +# .ci/env/apt.sh clang-format +# .ci/env/editorconfig-checker.sh +# displayName: 'Install Dependencies' +# - script: | +# .ci/scripts/clang-format.sh +# displayName: 'clang-format check' +# failOnStderr: true +# - script: | +# editorconfig-checker +# displayName: 'editorconfig-checker' +# failOnStderr: true - job: 'LinuxMakeGNU_MKL' timeoutInMinutes: 0 diff --git a/.github/workflows/skywalking-eyes.yml b/.github/workflows/skywalking-eyes.yml index 5527cfa740f..6cc1e0f0c6e 100644 --- a/.github/workflows/skywalking-eyes.yml +++ b/.github/workflows/skywalking-eyes.yml @@ -1,4 +1,4 @@ -name: Check License Header +name: Code Compliance Checks on: pull_request: @@ -16,13 +16,20 @@ concurrency: jobs: check-license-header: - name: Copyright Check - if: github.repository == 'uxlfoundation/oneDAL' + name: Code Sanity runs-on: ubuntu-24.04 steps: - - name: "Checkout code" + - name: "Checkout sources" uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: "Run check" + - name: "ClangFormat Check" + run: | + .ci/env/apt.sh clang-format + .ci/scripts/clang-format.sh + - name: "EditorConfig Checker" + run: | + .ci/env/editorconfig-checker.sh + editorconfig-checker + - name: "Copyright Check" uses: apache/skywalking-eyes/header@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 # v0.6.0 with: config: ".github/.licenserc.yaml" From c019591efcdabaca5b747cac9d38d83072f3082c Mon Sep 17 00:00:00 2001 From: homksei Date: Fri, 13 Dec 2024 14:45:53 +0100 Subject: [PATCH 2/3] ci: move checks under actions --- .ci/scripts/test.bat | 2 +- .github/workflows/skywalking-eyes.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ci/scripts/test.bat b/.ci/scripts/test.bat index 0a704e25768..75497edf791 100644 --- a/.ci/scripts/test.bat +++ b/.ci/scripts/test.bat @@ -3,7 +3,7 @@ rem ============================================================================ rem Copyright 2022 Intel Corporation rem rem Licensed under the Apache License, Version 2.0 (the "License"); -rem you may not use this file except in compliance with the License. +rem you may not use thdis file except in compliance with the License. rem You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 diff --git a/.github/workflows/skywalking-eyes.yml b/.github/workflows/skywalking-eyes.yml index 6cc1e0f0c6e..2b856baca92 100644 --- a/.github/workflows/skywalking-eyes.yml +++ b/.github/workflows/skywalking-eyes.yml @@ -21,14 +21,14 @@ jobs: steps: - name: "Checkout sources" uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: "ClangFormat Check" + - name: "Install Dependencies" run: | .ci/env/apt.sh clang-format - .ci/scripts/clang-format.sh - - name: "EditorConfig Checker" - run: | .ci/env/editorconfig-checker.sh - editorconfig-checker + - name: "ClangFormat Check" + run: .ci/scripts/clang-format.sh + - name: "EditorConfig Checker" + run: editorconfig-checker - name: "Copyright Check" uses: apache/skywalking-eyes/header@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 # v0.6.0 with: From fbad49b708203cb9abec63a6bc9ccf72c2affecb Mon Sep 17 00:00:00 2001 From: homksei Date: Fri, 13 Dec 2024 16:32:32 +0100 Subject: [PATCH 3/3] ci: move checks under actions --- .github/workflows/skywalking-eyes.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/skywalking-eyes.yml b/.github/workflows/skywalking-eyes.yml index 2b856baca92..499759a92fb 100644 --- a/.github/workflows/skywalking-eyes.yml +++ b/.github/workflows/skywalking-eyes.yml @@ -21,14 +21,16 @@ jobs: steps: - name: "Checkout sources" uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: "Install Dependencies" - run: | - .ci/env/apt.sh clang-format - .ci/env/editorconfig-checker.sh - - name: "ClangFormat Check" - run: .ci/scripts/clang-format.sh - - name: "EditorConfig Checker" - run: editorconfig-checker + # - name: "Install Dependencies" + # run: | + # .ci/env/apt.sh clang-format + # .ci/env/editorconfig-checker.sh + # - name: "ClangFormat Check" + # run: .ci/scripts/clang-format.sh + # - name: "EditorConfig Checker" + # run: editorconfig-checker + - name: Check go.sum + run: find . -name go.sum - name: "Copyright Check" uses: apache/skywalking-eyes/header@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 # v0.6.0 with: