ci: Add ccache to github workflows

This commit is contained in:
Michael Drake 2023-03-16 15:12:40 +00:00 committed by Michael Drake
parent b56d74b5df
commit 21e636a3a6
3 changed files with 21 additions and 0 deletions

View File

@ -31,6 +31,7 @@ jobs:
sudo apt-get install --no-install-recommends -y
bison
build-essential
ccache
check
clang
flex
@ -46,6 +47,12 @@ jobs:
pkg-config
wbritish # Needed for `/usr/share/dict/words`, used by test
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.compiler.vendor }}
max-size: 128M
- name: Build and install project libs
env:
CC: ${{ matrix.compiler.CC }}

View File

@ -23,6 +23,7 @@ jobs:
sudo apt-get install --no-install-recommends -y
bison
build-essential
ccache
check
clang
flex
@ -38,6 +39,12 @@ jobs:
pkg-config
wbritish # Needed for `/usr/share/dict/words`, used by test
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
max-size: 128M
- name: Build and install project libs
run: |
export TARGET_WORKSPACE="$(pwd)/projects"

View File

@ -23,6 +23,7 @@ jobs:
sudo apt-get install --no-install-recommends -y
bison
build-essential
ccache
flex
git
gperf
@ -34,6 +35,12 @@ jobs:
librsvg2-dev
pkg-config
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
max-size: 128M
- name: Build and install project libs
run: |
export TARGET_WORKSPACE="$(pwd)/projects"