ci: Ensure ccache, LTO cache dirs always exist before use

This commit is contained in:
Matt Borgerson
2026-01-10 17:46:39 -07:00
committed by mborgerson
parent 78934edcbc
commit ddd5a81de1
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -48,6 +48,7 @@ jobs:
-Db_thinlto_cache=true
-Db_thinlto_cache_dir="$LTO_CACHE_DIR"
)
mkdir -p ${LTO_CACHE_DIR}
fi
echo "XEMU_BUILD_OPTIONS=${opts[*]}" >> "$GITHUB_ENV"
- name: Initialize compiler cache
@@ -93,6 +94,7 @@ jobs:
- name: Setup ccache
run: |
echo "PATH=/usr/lib/ccache:$PATH" >> "$GITHUB_ENV"
mkdir -p ${CCACHE_DIR}
ccache -z
- name: Compile
run: |
+2
View File
@@ -52,6 +52,7 @@ jobs:
- name: Setup ccache
run: |
echo "PATH=/opt/homebrew/opt/ccache/libexec:$PATH" >> "$GITHUB_ENV"
mkdir -p ${CCACHE_DIR}
ccache -z
- name: Setup build options
run: |
@@ -66,6 +67,7 @@ jobs:
-Db_thinlto_cache=true
-Db_thinlto_cache_dir="$LTO_CACHE_DIR"
)
mkdir -p ${LTO_CACHE_DIR}
fi
echo "XEMU_BUILD_OPTIONS=${opts[*]}" >> "$GITHUB_ENV"
- name: Compile
+4 -1
View File
@@ -42,7 +42,9 @@ jobs:
key: cache-wincross-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.configuration }}-${{ github.sha }}
restore-keys: cache-wincross-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.configuration }}-
- name: Setup ccache
run: ccache -z
run: |
mkdir -p ${CCACHE_DIR}
ccache -z
- name: Setup build options
run: |
if [[ "${{ matrix.configuration }}" == "debug" ]]; then
@@ -54,6 +56,7 @@ jobs:
--extra-cflags="-flto-incremental=${LTO_CACHE_DIR} -flto-partition=cache"
-Db_lto=true
)
mkdir -p ${LTO_CACHE_DIR}
elif [[ "${{ matrix.arch }}" == "arm64" ]]; then
# FIXME: llvm-mingw ThinLTO has an issue with `qemu_build_not_reached_always`
# being intentionaly undefined (to ensure 'unreachable' paths are