From 76ced48fed064b3cacce3eee9559cc41cc7a3d19 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Fri, 28 Jul 2023 22:57:42 +1100 Subject: [PATCH] Github CI cached llvm and clang --- .github/workflows/build-linux.yml | 14 +++++++++++--- .github/workflows/build-windows.yml | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 7db785e..ea5ef3d 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -14,11 +14,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Clang - uses: egor-tensin/setup-clang@v1 + - name: Cache LLVM and Clang + id: cache-llvm + uses: actions/cache@v3 + with: + path: | + C:/Program Files/LLVM + ./llvm + key: llvm-3.5 + - name: Install LLVM and Clang + uses: KyleMayes/install-llvm-action@v1 with: version: latest - platform: x64 + cached: ${{ steps.cache-llvm.outputs.cache-hit }} - name: Setup NASM uses: ilammy/setup-nasm@v1 - name: Set up Python diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index d0cd8dc..b1840e7 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -14,11 +14,19 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 - - name: Set up Clang - uses: egor-tensin/setup-clang@v1 + - name: Cache LLVM and Clang + id: cache-llvm + uses: actions/cache@v3 + with: + path: | + C:/Program Files/LLVM + ./llvm + key: llvm-3.5 + - name: Install LLVM and Clang + uses: KyleMayes/install-llvm-action@v1 with: version: latest - platform: x64 + cached: ${{ steps.cache-llvm.outputs.cache-hit }} - name: Setup NASM uses: ilammy/setup-nasm@v1 - name: Set up Python