From 2ff2c86a8e3fc66441f2848832e4a306b02640cb Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 29 May 2024 18:12:16 +0200 Subject: [PATCH] meta: Add a workflow to manually populate the clang cache --- .github/workflows/populate-windows-clang.yml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/populate-windows-clang.yml diff --git a/.github/workflows/populate-windows-clang.yml b/.github/workflows/populate-windows-clang.yml new file mode 100644 index 000000000..97d2ac14c --- /dev/null +++ b/.github/workflows/populate-windows-clang.yml @@ -0,0 +1,24 @@ +name: Manually populate clang cache for windows +on: + workflow_dispatch: + +env: + LLVM_VER: 16.0.6 + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Cache Clang + uses: actions/cache@v3 + id: cache-clang + with: + path: 'llvm-install-${{ env.LLVM_VER }}/' + key: 'libclang-${{ runner.os }}-${{ env.LLVM_VER }}' + - name: Build clang if cache miss + uses: ./.github/actions/clang-windows + if: steps.cache-clang.outputs.cache-hit != 'true' + with: + llvm_version: "${{ env.LLVM_VER }}" + llvm_branch: "llvmorg-${{ env.LLVM_VER }}"