[llvm] [libc++] Move the check-generated-files job to Github Actions (PR #68920)

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 14:20:01 PDT 2023


================
@@ -0,0 +1,29 @@
+name: "Check libc++ generated files"
+on:
+  pull_request_target:
+    paths:
+      - 'libcxx/**'
+permissions:
+  pull-requests: write
+
+jobs:
+  check_generated_files:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Fetch LLVM sources
+        uses: actions/checkout at v4
+        with:
+          fetch-depth: 2
+
+      - name: Install clang-format
+        uses: aminya/setup-cpp at v1
+        with:
+          clangformat: 17.0.1
+
+      - name: Install Ninja
+        uses: seanmiddleditch/gha-setup-ninja at master
+        with:
+          destination: build/ninja-install
+
+      - name: Check generated files
+        run: libcxx/utils/ci/run-buildbot check-generated-output
----------------
ldionne wrote:

Oh, thanks for explaining! I wasn't aware of the difference. I just copied it from `.github/workflows/pr-code-format.yml`, but I don't think we need `pull_request_target`, it should be sufficient to use just `pull_request`.

https://github.com/llvm/llvm-project/pull/68920


More information about the llvm-commits mailing list