diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee4b3d4..ca1df52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache LwTools + id: cache-lwtools + uses: actions/cache@v5 + env: + cache-name: cache-lwtools + with: + path: /usr/local/bin/lw* + key: lwtools-4.24 + - name: Fetch Toolshed uses: robinraju/release-downloader@v1 with: @@ -47,7 +56,8 @@ jobs: sudo tar xvf toolshed/toolshed-unix*.tgz --strip-components=1 -C /usr/local/bin sudo ln -s /bin/bash /usr/local/bin/xroar - - name: Install Lwtools + - if: ${{ steps.cache-lwtools.outputs.cache-hit != 'true' }} + name: Install Lwtools run: | sudo bash ./setup/lwtools.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b47dc9..d85ac0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache LwTools + id: cache-lwtools + uses: actions/cache@v5 + env: + cache-name: cache-lwtools + with: + path: /usr/local/bin/lw* + key: lwtools-4.24 + - name: Fetch Toolshed uses: robinraju/release-downloader@v1 with: @@ -42,7 +51,9 @@ jobs: sudo tar xvf toolshed/toolshed-unix*.tgz --strip-components=1 -C /usr/local/bin sudo ln -s /bin/bash /usr/local/bin/xroar - - name: Install Lwtools + + - if: ${{ steps.cache-lwtools.outputs.cache-hit != 'true' }} + name: Install Lwtools run: | sudo bash ./setup/lwtools.sh