From b5edf8b1bf9f745ebb413c4d63b8852f231706a9 Mon Sep 17 00:00:00 2001 From: vanyabeat Date: Sun, 6 Oct 2024 21:02:43 +0300 Subject: [PATCH] FIX 2 --- .github/workflows/ci-cpp-build.yml | 6 +++++- tasks/task_basic_c/task_int2str/int2str_tests.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cpp-build.yml b/.github/workflows/ci-cpp-build.yml index ed26e88..f2c1083 100644 --- a/.github/workflows/ci-cpp-build.yml +++ b/.github/workflows/ci-cpp-build.yml @@ -15,6 +15,10 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Get Docker cache digest + id: get-cache-digest + run: echo "::set-output name=digest::$(sha256sum docker-compose.yml | awk '{ print $1 }')" + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -23,7 +27,7 @@ jobs: uses: actions/cache@v3 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-docker-${{ github.sha }} + key: ${{ runner.os }}-docker-${{ steps.get-cache-digest.outputs.digest }} restore-keys: | ${{ runner.os }}-docker- diff --git a/tasks/task_basic_c/task_int2str/int2str_tests.cpp b/tasks/task_basic_c/task_int2str/int2str_tests.cpp index 7c56aba..e47cdc0 100644 --- a/tasks/task_basic_c/task_int2str/int2str_tests.cpp +++ b/tasks/task_basic_c/task_int2str/int2str_tests.cpp @@ -19,4 +19,4 @@ TEST(int2str, BasicTestNumbers) { EXPECT_STREQ(int2str(-123), "-123"); EXPECT_STREQ(int2str(2147483647), "2147483647"); EXPECT_STREQ(int2str(-2147483648), "-2147483648"); -} \ No newline at end of file +}