feat: use warpbuild cache instead

This commit is contained in:
Garret Meier 2024-07-01 09:19:26 -07:00
parent f2fc6d1af4
commit 3898e51b71

View file

@ -59,7 +59,7 @@ runs:
PACKAGES: "${{ inputs.packages }}"
- id: load-cache
uses: actions/cache/restore@v4
uses: WarpBuilds/cache/restore@v1
with:
path: ~/cache-apt-pkgs
key: cache-apt-pkgs_${{ env.CACHE_KEY }}
@ -83,16 +83,9 @@ runs:
DEBUG: "${{ inputs.debug }}"
PACKAGES: "${{ inputs.packages }}"
- id: upload-logs
if: ${{ inputs.debug == 'true' }}
uses: actions/upload-artifact@v3
with:
name: cache-apt-pkgs-logs_${{ env.CACHE_KEY }}
path: ~/cache-apt-pkgs/*.log
- id: save-cache
if: ${{ ! steps.load-cache.outputs.cache-hit }}
uses: actions/cache/save@v4
uses: WarpBuilds/cache/save@v1
with:
path: ~/cache-apt-pkgs
key: ${{ steps.load-cache.outputs.cache-primary-key }}