From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: stable@dpdk.org, Aaron Conole <aconole@redhat.com>,
Michael Santana <maicolgabriel@hotmail.com>
Subject: [PATCH] ci: fix ccache for Ubuntu 22.04
Date: Thu, 6 Mar 2025 15:34:43 +0100 [thread overview]
Message-ID: <20250306143443.3972030-1-david.marchand@redhat.com> (raw)
By default (and if no $HOME/.ccache directory exists), Ubuntu 22.04 ccache
stores its data in $HOME/.cache/ccache.
As a result, since the switch to Ubuntu 22.04, ccache has not been
functional.
Set the ccache directory to the location cached in GHA.
Note: ccache is working with the Fedora containers, as the presence of a
.ccache directory made ccache use it, still,
explicitly set CCACHE_DIR for consistency.
Fixes: 8400093195dd ("ci: bump tested distributions in GHA")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
.github/workflows/build.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 183b0b1999..a5739a72c6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -45,6 +45,7 @@ jobs:
BUILD_DOCS: ${{ contains(matrix.config.checks, 'doc') }}
BUILD_EXAMPLES: ${{ contains(matrix.config.checks, 'examples') }}
CC: ccache ${{ matrix.config.compiler }}
+ CCACHE_DIR: $HOME/.ccache
DEF_LIB: ${{ matrix.config.library }}
LIBABIGAIL_VERSION: libabigail-2.6
MINGW: ${{ matrix.config.cross == 'mingw' }}
@@ -307,6 +308,7 @@ jobs:
mkdir -p ~/.ccache
> ~/env
echo CC=ccache ${{ matrix.config.compiler }} >> ~/env
+ echo CCACHE_DIR=/root/.ccache >> ~/env
echo DEF_LIB=${{ matrix.config.library }} >> ~/env
echo STDATOMIC=false >> ~/env
- name: Load the cached image
--
2.48.1
next reply other threads:[~2025-03-06 14:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-06 14:34 David Marchand [this message]
2025-03-06 17:09 ` David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250306143443.3972030-1-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=aconole@redhat.com \
--cc=dev@dpdk.org \
--cc=maicolgabriel@hotmail.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).