From 172c48eafdd716e52d28c99f5387fc562e8c81b3 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 16 Feb 2021 22:54:04 +0000 Subject: [PATCH] Update readme and workflow for LFS --- .github/workflows/build-and-test.yml | 14 ++++++++++++++ README.md | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 67259c04f7..4828f4f21f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -56,6 +56,20 @@ jobs: steps: - uses: actions/checkout@v2 + + # See https://github.com/actions/checkout/issues/165#issuecomment-657673315 + - 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: + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + - name: Git LFS Pull + run: git lfs pull - name: Install NuGet uses: NuGet/setup-nuget@v1 diff --git a/README.md b/README.md index 14352bd80e..6cc8e53047 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,9 @@ If working with Windows please ensure that you have enabled long file paths in g git config --system core.longpaths true ``` -This repository contains [git submodules](https://blog.github.com/2016-02-01-working-with-submodules/). To add the submodules to the project, navigate to the repository root and type: +This repository uses [Git Large File Storage](https://docs.github.com/en/github/managing-large-files/installing-git-large-file-storage). Please follow the linked instructions to ensure you have it set up in your environment. + +This repository contains [Git Submodules](https://blog.github.com/2016-02-01-working-with-submodules/). To add the submodules to the project, navigate to the repository root and type: ``` bash git submodule update --init --recursive