https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/119635
>From 19f4098c0934f242ed5b332533dfe03c44e82de8 Mon Sep 17 00:00:00 2001 From: Aiden Grossman <aidengross...@google.com> Date: Wed, 11 Dec 2024 23:31:07 +0000 Subject: [PATCH 1/3] [CI][Github] Add linux premerge workflow This patch adds a Github Actions workflow for Linux premerge. This currently just calls into the existing CI scripts as a starting point. --- .github/workflows/premerge.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/premerge.yaml diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml new file mode 100644 index 00000000000000..33a5b57ab3548f --- /dev/null +++ b/.github/workflows/premerge.yaml @@ -0,0 +1,20 @@ +name: LLVM Premerge Checks + +permissions: + contents: read + +on: + pull_request: + paths: + - .github/workflows/premerge.yaml + +jobs: + premerge-checks-linux: + if: github.repository_owner == 'llvm' + runs-on: ubuntu-latest + steps: + - name: Checkout LLVM + uses: actions/checkout@v4 + - name: Build and Test + run: | + echo test >From 9c8661960efcbfee9164dcc74bca22c5e30adbc9 Mon Sep 17 00:00:00 2001 From: Aiden Grossman <aidengross...@google.com> Date: Wed, 11 Dec 2024 23:44:30 +0000 Subject: [PATCH 2/3] Modification stuff --- .github/workflows/premerge.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml index 33a5b57ab3548f..e471f0d3aa256c 100644 --- a/.github/workflows/premerge.yaml +++ b/.github/workflows/premerge.yaml @@ -17,4 +17,8 @@ jobs: uses: actions/checkout@v4 - name: Build and Test run: | - echo test + ${MODIFIED_FILES:=$(git diff --name-only HEAD~1...HEAD)} + echo $MODIFIED_FILES + modified_dirs=$(echo "$MODIFIED_FILES" | cut -d'/' -f1 | sort -u) + echo "$modified_dirs" >&2 + >From 60c621205f3994c7a0b4e34d087bb11f6dbda7f4 Mon Sep 17 00:00:00 2001 From: Aiden Grossman <aidengross...@google.com> Date: Wed, 11 Dec 2024 23:51:04 +0000 Subject: [PATCH 3/3] Adjust depth --- .github/workflows/premerge.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml index e471f0d3aa256c..632c5ca38a1784 100644 --- a/.github/workflows/premerge.yaml +++ b/.github/workflows/premerge.yaml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout LLVM uses: actions/checkout@v4 + with: + fetch-depth: 2 - name: Build and Test run: | ${MODIFIED_FILES:=$(git diff --name-only HEAD~1...HEAD)} _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits