From 48d0270a18ae05b7de48fc5d0bc598803e75239a Mon Sep 17 00:00:00 2001 From: Langleu Date: Fri, 10 Jan 2025 12:53:49 +0100 Subject: [PATCH] feat: add asdf tool cache --- .github/workflows/lint-global.yml | 11 +++++++++++ .github/workflows/lint.yml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/lint-global.yml b/.github/workflows/lint-global.yml index 6404de4..ab3a5f2 100644 --- a/.github/workflows/lint-global.yml +++ b/.github/workflows/lint-global.yml @@ -59,6 +59,17 @@ jobs: - name: Install Python dependencies run: sudo apt-get install -y libsqlite3-dev libbz2-dev liblzma-dev + # Setup tool cache + - name: Cache asdf installation + id: cache + uses: actions/cache@v4 + with: + path: | + /home/runner/.asdf + key: ${{ runner.os }}-tooling-${{ hashFiles('**/.tool-versions') }} + restore-keys: | + ${{ runner.os }}-tooling- + - name: Install tooling using asdf uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c90649..58de54d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,6 +21,17 @@ jobs: - name: Install SQLite dependency run: sudo apt-get install -y libsqlite3-dev + # Setup tool cache + - name: Cache asdf installation + id: cache + uses: actions/cache@v4 + with: + path: | + /home/runner/.asdf + key: ${{ runner.os }}-tooling-${{ hashFiles('**/.tool-versions') }} + restore-keys: | + ${{ runner.os }}-tooling- + - name: Install tooling using asdf uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3