From 2c713241dcbb2669384840a6aaf02fed210d8028 Mon Sep 17 00:00:00 2001 From: Mika Nevalainen Date: Mon, 14 Jun 2021 13:35:18 +0300 Subject: [PATCH 1/2] Try to fix lsf-cache issue in development --- .github/workflows/development.yml | 16 ++++++++++++---- .huskyrc.js | 6 ------ 2 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 .huskyrc.js diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index a84a4b3ee6..96e625e6e3 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -11,11 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 + + - name: Create LFS file list + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + + - name: Restore LFS cache + uses: actions/cache@v2 + id: lfs-cache with: - lfs: true - - - name: Checkout LFS objects - run: git lfs checkout + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + - name: Git LFS Pull + run: git lfs pull - name: setup node uses: actions/setup-node@v2.1.5 diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index f885385103..0000000000 --- a/.huskyrc.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - hooks: { - "pre-commit": "yarn run husky:pre-commit", - "pre-push": "yarn run husky:pre-push" - } -}; From 677cc184345c5dd5c1759ab00d2bd3cd655f6afb Mon Sep 17 00:00:00 2001 From: Mika Nevalainen Date: Mon, 14 Jun 2021 16:07:25 +0300 Subject: [PATCH 2/2] Use filename cache also in gh-pages action --- .github/workflows/gh-pages.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 0b6c970c05..097dd40701 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -10,11 +10,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 + + - name: Create LFS file list + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + + - name: Restore LFS cache + uses: actions/cache@v2 + id: lfs-cache with: - lfs: true - - - name: Checkout LFS objects - run: git lfs checkout + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + - name: Git LFS Pull + run: git lfs pull - name: setup node uses: actions/setup-node@v2.1.5