From f8d2a90a878428b67764748972022b51691a65d5 Mon Sep 17 00:00:00 2001 From: Lars Lange <9141483+Langleu@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:59:18 +0100 Subject: [PATCH] feat: add asdf tool cache (#209) --- .github/workflows/daily-cleanup.yml | 10 ++++++++++ .github/workflows/test-gha-eks.yml | 10 ++++++++++ .github/workflows/tests.yml | 20 ++++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/.github/workflows/daily-cleanup.yml b/.github/workflows/daily-cleanup.yml index c833f2f5..5b656630 100644 --- a/.github/workflows/daily-cleanup.yml +++ b/.github/workflows/daily-cleanup.yml @@ -37,6 +37,16 @@ jobs: ref: ${{ github.head_ref }} fetch-depth: 0 + - name: Cache asdf installation + id: cache + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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/test-gha-eks.yml b/.github/workflows/test-gha-eks.yml index 98f33b12..11c00bb4 100644 --- a/.github/workflows/test-gha-eks.yml +++ b/.github/workflows/test-gha-eks.yml @@ -77,6 +77,16 @@ jobs: ref: ${{ github.head_ref }} fetch-depth: 0 + - name: Cache asdf installation + id: cache + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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/tests.yml b/.github/workflows/tests.yml index 6b7f3999..38d72b32 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -111,6 +111,16 @@ jobs: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Cache asdf installation + id: cache + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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 @@ -203,6 +213,16 @@ jobs: ref: ${{ github.head_ref }} fetch-depth: 0 + - name: Cache asdf installation + id: cache + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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