4 Commits

Author SHA1 Message Date
1f2f4ba774 CI: create ccache dir
Some checks failed
Ficus build / iso (push) Has been cancelled
Ficus build / build-ficus-toolchain (push) Has been cancelled
Unit tests / build (push) Has been cancelled
maybe this is why it isn't working?
2024-07-15 19:41:56 +02:00
a6c23178f9 CI: add sysroot in cache 2024-07-15 19:37:54 +02:00
6937fba0a3 CI: really working ccache? 2 2024-07-15 19:36:03 +02:00
d68b057292 CI: really working ccache? 2024-07-15 19:33:55 +02:00

View File

@@ -25,6 +25,9 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake build-essential pax gcc g++ nasm bison bzip2 flex mtools texinfo libgmp-dev libmpfr-dev libmpc-dev xorriso ccache run: sudo apt-get update && sudo apt-get install -y cmake build-essential pax gcc g++ nasm bison bzip2 flex mtools texinfo libgmp-dev libmpfr-dev libmpc-dev xorriso ccache
- name: Create ccache dir
run: mkdir ~/ccache-cache
- name: CCache cache - name: CCache cache
id: cache-ccache id: cache-ccache
uses: actions/cache@v4 uses: actions/cache@v4
@@ -39,6 +42,7 @@ jobs:
run: | run: |
ccache -p ccache -p
which gcc which gcc
which g++
- name: Cache generic toolchain - name: Cache generic toolchain
id: cache-toolchain id: cache-toolchain
@@ -108,10 +112,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' }}
@@ -122,10 +127,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