From b8e7f61edb6c9ee4d943523b7bd63b922d0ba376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=90=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D1=86=D0=B5=D0=B2?= Date: Mon, 9 Dec 2024 00:58:49 +0300 Subject: [PATCH] configure and build in one step --- .github/workflows/build_and_test.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 01652f4..53e5602 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -19,14 +19,7 @@ on: env: USE_CACHE: ${{ github.event.inputs.use_cache || 'true' }} CACHE_VERSION: v01 - CACHE_PATHS: | - ~/.cargo - ~/.hunter - ~/.cache/pip - ~/.cache/vcpkg - .vcpkg - .venv - .build + jobs: build-and-test: @@ -38,13 +31,23 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - + with: + submodules: true + fetch-depth: 0 + - name: "Restore cache dependencies" id: cache-restore if: ${{ env.USE_CACHE == 'true' }} uses: actions/cache/restore@v4 with: - path: ${{ env.CACHE_PATHS }} + path: | + ~/.cargo + ~/.hunter + ~/.cache/pip + ~/.cache/vcpkg + .vcpkg + .venv + .build key: jam-${{ runner.os }}-${{ github.job }}-${{ env.CACHE_VERSION }} restore-keys: | jam-${{ runner.os }}-${{ github.job }}