CI: add sysroot in cache

This commit is contained in:
2024-07-15 19:37:54 +02:00
parent 6937fba0a3
commit a6c23178f9

View File

@@ -111,10 +111,11 @@ jobs:
id: cache-toolchain-s2 id: cache-toolchain-s2
uses: actions/cache/restore@v4 uses: actions/cache/restore@v4
env: env:
cache-name: cache-toolchain-s2 cache-name: cache-toolchain-s2-v2
with: with:
path: | path: |
toolchain/gcc-x86_64-ficus-prefix toolchain/gcc-x86_64-ficus-prefix
sysroot
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('ficus-toolchain/*.sh') }}-${{ hashFiles('ficus-toolchain/newlib/newlib-4.4.0.20231231/**') }} key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('ficus-toolchain/*.sh') }}-${{ hashFiles('ficus-toolchain/newlib/newlib-4.4.0.20231231/**') }}
- if: ${{ steps.cache-toolchain-s2.outputs.cache-hit != 'true' }} - if: ${{ steps.cache-toolchain-s2.outputs.cache-hit != 'true' }}
@@ -125,10 +126,11 @@ jobs:
id: cache-toolchain-s2-save id: cache-toolchain-s2-save
uses: actions/cache/save@v4 uses: actions/cache/save@v4
env: env:
cache-name: cache-toolchain-s2 cache-name: cache-toolchain-s2-v2
with: with:
path: | path: |
toolchain/gcc-x86_64-ficus-prefix toolchain/gcc-x86_64-ficus-prefix
sysroot
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('ficus-toolchain/*.sh') }}-${{ hashFiles('ficus-toolchain/newlib/newlib-4.4.0.20231231/**') }} key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('ficus-toolchain/*.sh') }}-${{ hashFiles('ficus-toolchain/newlib/newlib-4.4.0.20231231/**') }}
- name: Tar the toolchain - name: Tar the toolchain