feat: some shit
This commit is contained in:
parent
31864f616a
commit
54ac6555c4
18
.github/workflows/default.yaml
vendored
18
.github/workflows/default.yaml
vendored
@ -21,20 +21,20 @@ jobs:
|
|||||||
- name: 📦 Install git-lfs
|
- name: 📦 Install git-lfs
|
||||||
run: apt update && apt install git-lfs zstd
|
run: apt update && apt install git-lfs zstd
|
||||||
|
|
||||||
- name: Create LFS file list
|
- name: 🔢 Calculate cache ids
|
||||||
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id
|
run: |
|
||||||
|
git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
|
||||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
LFS_CACHE_ID=$(cat .lfs-assets-id | md5sum)-v1 # Get the GitHub repository name
|
||||||
id: hash-lfs
|
PNPM_CACHE_ID=$( cat pnpm-lock.yaml | md5sum )-v1
|
||||||
with:
|
echo "LFS_CACHE_ID=$LFS_CACHE_ID" >> $GITHUB_ENV
|
||||||
patterns: |
|
echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
|
||||||
.lfs-assets-id
|
echo "PNPM_CACHE_ID=$PNPM_CACHE_ID" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: LFS Cache
|
- name: LFS Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: .git/lfs/objects
|
path: .git/lfs/objects
|
||||||
key: ${{ runner.os }}-lfs-${{ steps.hash-lfs.outputs.hash }}
|
key: ${{ runner.os }}-lfs-${{ env.LFS_CACHE_ID }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
|
|
||||||
- name: 📦 Install PNPM
|
- name: 📦 Install PNPM
|
||||||
|
Loading…
Reference in New Issue
Block a user