machine executor. Apparently
git lfs is not available, and wondering if there’s any plan to add it. Installing git lfs on the fly adds extra 30 seconds which is not great.
And, it’s kind of a related question, I’d like to know what’s the
machine executor’s roadmap. It seems it’s not updated for almost a half year.
I just found a good workaround to shorten the installation step. Git LFS actually works with just one file in
$PATH, so it can skip regular
apt-get install. In the config.yml the step would look like this:
- restore_cache: keys: - v1-git-lfs - run: name: "Install git lfs" command: | if ! [ -x "$(command -v git-lfs)" ]; then curl -L -o /tmp/git-lfs.tar.gz \ https://github.com/git-lfs/git-lfs/releases/download/v2.4.0/git-lfs-linux-amd64-2.4.0.tar.gz tar xf /tmp/git-lfs.tar.gz -C /tmp sudo /tmp/git-lfs-2.4.0/install.sh fi - save_cache: key: v1-gif-lfs paths: - /usr/local/bin/git-lfs