Tune ccache key and root note

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-24 23:59:00 +00:00
parent d0b6f5f37a
commit b2c57be5d8

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: akkadius/eqemu-server:v16
# Run as root to allow GitHub Actions runner file command writes in the container.
# Run as root to avoid EACCES on GitHub Actions runner file command writes in the container.
options: --user 0
steps:
- name: Checkout source
@ -19,6 +19,11 @@ jobs:
with:
submodules: recursive
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-ccache-${{ hashFiles('CMakeLists.txt', '.github/workflows/build.yaml') }}
- name: Mark workspace safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
@ -26,7 +31,16 @@ jobs:
working-directory: ${{ github.workspace }}
run: |
mkdir -p build && cd build
cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DEQEMU_BUILD_PERL=ON -DEQEMU_BUILD_CLIENT_FILES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
cmake \
-DEQEMU_BUILD_TESTS=ON \
-DEQEMU_BUILD_LOGIN=ON \
-DEQEMU_BUILD_LUA=ON \
-DEQEMU_BUILD_PERL=ON \
-DEQEMU_BUILD_CLIENT_FILES=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
..
make -j"$(nproc)"
- name: Test