From d02abdda2e5c881ba9c99a64f877e1762b362d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poyraz=20K=C3=BC=C3=A7=C3=BCkarslan?= <83272398+PoyrazK@users.noreply.github.com> Date: Thu, 7 May 2026 20:52:48 +0300 Subject: [PATCH] ci: add 15min timeout to build/test jobs and cache apt packages - Replace apt-get install step with awalsh128/cache-apt-pkgs-action which caches downloaded .deb packages across CI runs - Add timeout-minutes: 15 to build and test jobs to prevent hangs from blocking the run - Keep ccache step as before --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16b1797..2dbda8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,7 @@ jobs: build: needs: style-check runs-on: ubuntu-latest + timeout-minutes: 15 strategy: matrix: compiler: [clang++, g++] @@ -39,10 +40,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y cmake clang clang-tidy llvm ninja-build ccache || (sleep 10 && sudo apt-get update && sudo apt-get install -y cmake clang clang-tidy llvm ninja-build ccache) + - name: Cache apt packages + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: cmake clang clang-tidy llvm ninja-build ccache + version: 1.0 - name: Cache ccache uses: actions/cache@v4 @@ -83,6 +85,7 @@ jobs: test: needs: build runs-on: ubuntu-latest + timeout-minutes: 15 strategy: matrix: compiler: [clang++, g++]