From 5898421d1e57eed099efd34ece1f095f1390f672 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 23 Jan 2025 14:09:05 +0100 Subject: [PATCH] try caching tools --- .github/workflows/go.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3b5ba17b5d..f6a33a68b5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,11 +13,19 @@ jobs: runs-on: self-hosted steps: - uses: actions/checkout@v4 + + # Cache build tools to avoid downloading them each time + - uses: actions/cache@v4 + with: + path: build/cache + key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }} + - name: Set up Go uses: actions/setup-go@v5 with: go-version: 1.23.0 cache: false + - name: Run linters run: | go run build/ci.go lint