mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ci: Ensure ccache, LTO cache dirs always exist before use
This commit is contained in:
committed by
mborgerson
parent
78934edcbc
commit
ddd5a81de1
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user