From fcc5304b5f5336bd16c99f237c58e22ed49d06b5 Mon Sep 17 00:00:00 2001 From: Dan Lorenc Date: Sun, 10 Dec 2023 08:16:46 -0500 Subject: [PATCH] Add the cache dir to our prod builds. This speeds up our mutli-package builds significantly, so it should help in the merge queue. Signed-off-by: Dan Lorenc --- .github/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f76eba9e939..cfee80b26a2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -76,9 +76,11 @@ jobs: # method doesn't trigger new builds for dependent updates. - name: 'Build Wolfi' run: | + # Setup the melange cache dir on the host so we can use that in subsequent builds + mkdir ../.melangecache make \ ARCH=${{ matrix.arch }} \ - MELANGE_EXTRA_OPTS="--keyring-append=/gcsfuse/wolfi-registry/wolfi-signing.rsa.pub" \ + MELANGE_EXTRA_OPTS="--keyring-append=/gcsfuse/wolfi-registry/wolfi-signing.rsa.pub --cache-dir=$(pwd)/../.melangecache"" \ all -j1 # Always run this step for https://github.com/wolfi-dev/os/issues/8698