From f9e80f8bdf605f570cd4daf7549d148aafc67015 Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Sat, 21 Feb 2026 20:37:51 -0500 Subject: [PATCH] ci: remove all caching from CI workflow Cache infrastructure is not implemented in the Forgejo instance, causing timeouts Removed: - actions/cache steps for Go modules, Zig build, native libs, apt packages - Docker buildx layer caching (cache-from/cache-to) --- .forgejo/workflows/ci.yml | 58 --------------------------------------- 1 file changed, 58 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index ac9548d..421206c 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -60,16 +60,6 @@ jobs: fi go version - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum', '**/go.mod') }} - restore-keys: | - ${{ runner.os }}-go- - - name: Set up Zig run: | ZIG_VERSION="${{ env.ZIG_VERSION }}" @@ -94,34 +84,6 @@ jobs: fi zig version - - name: Cache Zig build - uses: actions/cache@v4 - with: - path: | - ~/.cache/zig - cli/zig-cache - cli/zig-out - key: ${{ runner.os }}-zig-${{ hashFiles('cli/**') }} - restore-keys: | - ${{ runner.os }}-zig- - - - name: Cache native libraries - uses: actions/cache@v4 - with: - path: | - native/build/ - key: ${{ runner.os }}-native-${{ hashFiles('native/**/*.cpp', 'native/**/*.h', 'native/**/CMakeLists.txt') }} - restore-keys: | - ${{ runner.os }}-native- - - - name: Cache apt packages - uses: actions/cache@v4 - with: - path: /var/cache/apt/archives - key: ${{ runner.os }}-apt-${{ hashFiles('.forgejo/workflows/*.yml') }} - restore-keys: | - ${{ runner.os }}-apt- - - name: Install dependencies run: | go mod download @@ -211,16 +173,6 @@ jobs: fi zig version - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum', '**/go.mod') }} - restore-keys: | - ${{ runner.os }}-go- - - name: Install build dependencies run: | sudo apt-get update @@ -332,14 +284,6 @@ jobs: driver-opts: | image=moby/buildkit:master - - name: Cache Docker layers - uses: actions/cache@v4 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -356,5 +300,3 @@ jobs: tags: | ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ github.sha }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max