From bec804131b5951db7a6adab2bd84e684e1d424eb Mon Sep 17 00:00:00 2001 From: spinline Date: Thu, 12 Feb 2026 22:59:37 +0300 Subject: [PATCH] feat: add cargo and node_modules caching to Gitea workflow --- .gitea/workflows/build-mips.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-mips.yml b/.gitea/workflows/build-mips.yml index 7ed5ee6..7da3b95 100644 --- a/.gitea/workflows/build-mips.yml +++ b/.gitea/workflows/build-mips.yml @@ -22,12 +22,32 @@ jobs: git fetch --depth=1 origin ${{ gitea.sha }} git checkout FETCH_HEAD + - name: Cache Cargo + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + + - name: Cache Node Modules + uses: actions/cache@v3 + with: + path: frontend/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('frontend/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Build Frontend run: | cd frontend npm install npx @tailwindcss/cli -i input.css -o public/tailwind.css --minify --content './src/**/*.rs' - # Trunk'ın optimizasyonunu kapalı (0) tutuyoruz çünkü Cargo.toml'daki opt-level='z' zaten o işi yapıyor. trunk build --release - name: Build Backend (MIPS)