From 1d3da183680c1603537e28b1a007220caab655f9 Mon Sep 17 00:00:00 2001 From: admercs Date: Mon, 6 May 2024 09:13:27 -0700 Subject: [PATCH] update actions cache --- .github/workflows/test_linux.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_linux.yml b/.github/workflows/test_linux.yml index e7cac689..4400c3fc 100644 --- a/.github/workflows/test_linux.yml +++ b/.github/workflows/test_linux.yml @@ -44,13 +44,16 @@ jobs: id: cache-gcc uses: actions/cache@v4 with: - path: "gcc-${GCC_VERSION}" - key: gcc + path: | + "~/gcc-${GCC_VERSION}" + key: ${{ runner.os }}-gcc-${{ hashFiles('**/*gcc-${GCC_VERSION}*') }} + restore-keys: | + ${{ runner.os }}-gcc- - - name: "Build GCC from source" - if: steps.cache-gcc.outputs.cache-hit != 'true' - shell: bash - run: bash ./scripts/build_gcc.sh --version "$GCC_VERSION" + #- name: "Build GCC from source" + # if: steps.cache-gcc.outputs.cache-hit != 'true' + # shell: bash + # run: bash ./scripts/build_gcc.sh --version "$GCC_VERSION" - name: "Install AutonomySim Dependencies" shell: bash