From bd145ad1abf2caec0eee8a628a906cee5d74e545 Mon Sep 17 00:00:00 2001 From: SANKARSHAN MISHRA <124585946+SankarshanMishra@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:34:45 +0530 Subject: [PATCH 1/6] Create main.yml --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000000..2762ac1268662f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ + - name: include what you use Github action + # You may pin to the exact commit or the version. + # uses: EmilGedda/include-what-you-use-action@fb65cd78dc3f5cb29785f784a017817d922fb858 + uses: EmilGedda/include-what-you-use-action@v1.0 + with: + # Relative path to directory containing the compilation database + compilation-database-path: # optional, default is . + # Output format of the include suggestions (clang|iwyu) + output-format: # optional, default is iwyu + # The action succeeds regardless if there are include suggestions or not + no-error: # optional, default is false + From 7e622a36d0c4b94a3d276c4191a1208fd584525e Mon Sep 17 00:00:00 2001 From: SANKARSHAN MISHRA <124585946+SankarshanMishra@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:23:13 +0530 Subject: [PATCH 2/6] Update and rename main.yml to include-what-you-use.yml --- .github/workflows/include-what-you-use.yml | 18 ++++++++++++++++++ .github/workflows/main.yml | 12 ------------ 2 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/include-what-you-use.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/include-what-you-use.yml b/.github/workflows/include-what-you-use.yml new file mode 100644 index 00000000000000..3fbd302de3ef9f --- /dev/null +++ b/.github/workflows/include-what-you-use.yml @@ -0,0 +1,18 @@ +name: include what you use Github action + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: include what you use + uses: EmilGedda/include-what-you-use-action@v1.0 + with: + compilation-database-path: '.' # Use default value or specify a valid path + output-format: 'iwyu' # Use default value or specify 'clang' or 'iwyu' + no-error: false # Use default value or specify true/false diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 2762ac1268662f..00000000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,12 +0,0 @@ - - name: include what you use Github action - # You may pin to the exact commit or the version. - # uses: EmilGedda/include-what-you-use-action@fb65cd78dc3f5cb29785f784a017817d922fb858 - uses: EmilGedda/include-what-you-use-action@v1.0 - with: - # Relative path to directory containing the compilation database - compilation-database-path: # optional, default is . - # Output format of the include suggestions (clang|iwyu) - output-format: # optional, default is iwyu - # The action succeeds regardless if there are include suggestions or not - no-error: # optional, default is false - From 3887a0f6a40101ee8f1c85dc046a42fd86079440 Mon Sep 17 00:00:00 2001 From: SANKARSHAN MISHRA <124585946+SankarshanMishra@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:45:56 +0530 Subject: [PATCH 3/6] Update include-what-you-use.yml --- .github/workflows/include-what-you-use.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/include-what-you-use.yml b/.github/workflows/include-what-you-use.yml index 3fbd302de3ef9f..ed747f4c1b190d 100644 --- a/.github/workflows/include-what-you-use.yml +++ b/.github/workflows/include-what-you-use.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + ref: v2 - name: include what you use uses: EmilGedda/include-what-you-use-action@v1.0 From c4297f51d11b00d8d12f987c035be4536483cadc Mon Sep 17 00:00:00 2001 From: SANKARSHAN MISHRA <124585946+SankarshanMishra@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:54:39 +0530 Subject: [PATCH 4/6] Update include-what-you-use.yml --- .github/workflows/include-what-you-use.yml | 29 ++++++++++++++-------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/include-what-you-use.yml b/.github/workflows/include-what-you-use.yml index ed747f4c1b190d..1ecc109493d030 100644 --- a/.github/workflows/include-what-you-use.yml +++ b/.github/workflows/include-what-you-use.yml @@ -1,20 +1,27 @@ name: include what you use Github action -on: [push] +on: + push: + branches: + - main jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: v2 + - name: Set up environment + env: + ACTIONS_STEP_DEBUG: true - - name: include what you use - uses: EmilGedda/include-what-you-use-action@v1.0 - with: - compilation-database-path: '.' # Use default value or specify a valid path - output-format: 'iwyu' # Use default value or specify 'clang' or 'iwyu' - no-error: false # Use default value or specify true/false + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: v2 + + - name: include what you use + uses: EmilGedda/include-what-you-use-action@v1.0 + with: + compilation-database-path: '.' # Use default value or specify a valid path + output-format: 'iwyu' # Use default value or specify 'clang' or 'iwyu' + no-error: false # Use default value or specify true/false From 65fb528c086b992869b1beaafd075969a933f2be Mon Sep 17 00:00:00 2001 From: SANKARSHAN MISHRA <124585946+SankarshanMishra@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:40:59 +0530 Subject: [PATCH 5/6] Update include-what-you-use.yml --- .github/workflows/include-what-you-use.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/include-what-you-use.yml b/.github/workflows/include-what-you-use.yml index 1ecc109493d030..3a3f8cb37875ae 100644 --- a/.github/workflows/include-what-you-use.yml +++ b/.github/workflows/include-what-you-use.yml @@ -4,6 +4,7 @@ on: push: branches: - main + jobs: build: @@ -11,6 +12,7 @@ jobs: steps: - name: Set up environment + uses: actions/setup-python@v2 env: ACTIONS_STEP_DEBUG: true From f9694d59e85fc86af85de6a1bc06dca81d136853 Mon Sep 17 00:00:00 2001 From: SANKARSHAN MISHRA <124585946+SankarshanMishra@users.noreply.github.com> Date: Sat, 13 Apr 2024 00:23:28 +0530 Subject: [PATCH 6/6] Update include-what-you-use.yml --- .github/workflows/include-what-you-use.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/include-what-you-use.yml b/.github/workflows/include-what-you-use.yml index 3a3f8cb37875ae..df9d34fc50427a 100644 --- a/.github/workflows/include-what-you-use.yml +++ b/.github/workflows/include-what-you-use.yml @@ -21,6 +21,12 @@ jobs: with: ref: v2 + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - name: include what you use uses: EmilGedda/include-what-you-use-action@v1.0 with: