Skip to content

Commit

Permalink
ci(lfs): install zstd
Browse files Browse the repository at this point in the history
## Описание

`actions/cache` для сжатия кэша использует zstd,  eсли его нет то использует gzip. Из-за этого в контейнерах кэш не может восстановиться.

## Изменения

Устанавливаем zstd если его нет.
  • Loading branch information
SevereCloud committed Sep 11, 2024
1 parent 57daba3 commit 965b6e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/lfs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ runs:
apt-get install -y git-lfs
fi
# см. https://github.com/actions/cache/issues/1455
- name: Install zstd
shell: bash
run: |
if zstd > /dev/null ; then
echo "zstd installed"
else
apt-get install -y zstd
fi
- name: Create LFS file list
shell: bash
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
Expand All @@ -29,6 +39,7 @@ runs:
with:
path: .git/lfs
key: lfs-${{ hashFiles('.lfs-assets-id') }}
enableCrossOsArchive: 'true'

- name: Checkout LFS objects
shell: bash
Expand Down

0 comments on commit 965b6e6

Please sign in to comment.