[clang-tools-extra] [llvm] [clang] workflows: Refactor release-tasks.yml (PR #69523)

Aiden Grossman via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 23:27:31 PST 2024


================
@@ -0,0 +1,74 @@
+name: Release Lit
+
+permissions:
+  contents: read
+
+on:
+  workflow_dispatch:
+    inputs:
+      release-version:
+        description: 'Release Version'
+        required: true
+        type: string
+
+  workflow_call:
+    inputs:
+      release-version:
+        description: 'Release Version'
+        required: true
+        type: string
+
+jobs:
+  release-lit:
+    name: Release Lit
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout LLVM
+        uses: actions/checkout at v4
+        with:
+          ref: "llvmorg-${{ inputs.release-version }}"
+
+      - name: Install dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y python3-setuptools python3-psutil python3-github
+
+      - name: Check Permissions
+        env:
+          GITHUB_TOKEN: ${{ github.token }}
+        run: |
+          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} check-permissions
+
+      - name: Setup Cpp
+        uses: aminya/setup-cpp at v1
+        with:
+          compiler: llvm-16.0.6
----------------
boomanaiden154 wrote:

Ah, yep.
https://github.com/llvm/llvm-project/blob/84f7fb6217fd417f3b5cb65fe7636e0aab84f6c7/llvm/utils/lit/CMakeLists.txt#L25C1-L25C1

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


More information about the cfe-commits mailing list