mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
d328be1084
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action) from 1.2.22 to 1.2.23. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hendrikmuhs/ccache-action/releases">hendrikmuhs/ccache-action's releases</a>.</em></p> <blockquote> <h2>v1.2.23</h2> <h2>What's Changed</h2> <ul> <li>Bump handlebars from 4.7.8 to 4.7.9 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/436">hendrikmuhs/ccache-action#436</a></li> <li>Bump <code>@types/node</code> from 25.5.0 to 25.6.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/440">hendrikmuhs/ccache-action#440</a></li> <li>Update ccache to 4.13.3 by <a href="https://github.com/crueter"><code>@crueter</code></a> in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/441">hendrikmuhs/ccache-action#441</a></li> <li>Bump brace-expansion by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/438">hendrikmuhs/ccache-action#438</a></li> <li>Support platforms without upstream ccache/sccache releases by <a href="https://github.com/luhenry"><code>@luhenry</code></a> in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/439">hendrikmuhs/ccache-action#439</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/luhenry"><code>@luhenry</code></a> made their first contribution in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/439">hendrikmuhs/ccache-action#439</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/hendrikmuhs/ccache-action/compare/v1.2.22...v1.2.23">https://github.com/hendrikmuhs/ccache-action/compare/v1.2.22...v1.2.23</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hendrikmuhs/ccache-action/commit/d62db5f07c26379fc4b4e0916f098a92573c3b03"><code>d62db5f</code></a> Support platforms without upstream ccache/sccache releases (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/439">#439</a>)</li> <li><a href="https://github.com/hendrikmuhs/ccache-action/commit/05e1c04f70f450688c8bf36082e71050cda33fff"><code>05e1c04</code></a> update code</li> <li><a href="https://github.com/hendrikmuhs/ccache-action/commit/46cafa7d86381b309fd628848dc9a06f6b62fa84"><code>46cafa7</code></a> Bump brace-expansion (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/438">#438</a>)</li> <li><a href="https://github.com/hendrikmuhs/ccache-action/commit/1f2fc71e6bcde2d2239527d286615b056034631d"><code>1f2fc71</code></a> Update ccache to 4.13.3 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/441">#441</a>)</li> <li><a href="https://github.com/hendrikmuhs/ccache-action/commit/a488765c244f03fddbbccc93de3f64abdb389e59"><code>a488765</code></a> Bump <code>@types/node</code> from 25.5.0 to 25.6.0 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/440">#440</a>)</li> <li><a href="https://github.com/hendrikmuhs/ccache-action/commit/c97afba725c6d99ed1e7395257fb02cc412236d5"><code>c97afba</code></a> Bump handlebars from 4.7.8 to 4.7.9 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/436">#436</a>)</li> <li>See full diff in <a href="https://github.com/hendrikmuhs/ccache-action/compare/v1.2.22...v1.2.23">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
97 lines
3.1 KiB
YAML
97 lines
3.1 KiB
YAML
name: Compilation Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Compare
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: master
|
|
|
|
- name: Install Package Dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install build-essential cmake \
|
|
clang gcc g++ lcov make nasm libxrandr-dev \
|
|
libxinerama-dev libxcursor-dev libpulse-dev \
|
|
libxi-dev zip ninja-build libgl1-mesa-dev libssl-dev
|
|
|
|
- name: Setup sccache
|
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
|
with:
|
|
variant: sccache
|
|
key: linux-ubuntu-22.04--Release-linux-clang-static-${{ github.sha }}
|
|
restore-keys: linux-ubuntu-22.04--Release-linux-clang-static
|
|
max-size: 1000M
|
|
|
|
- name: CMake Generation (master)
|
|
env:
|
|
CC: clang
|
|
CXX: clang++
|
|
run: |
|
|
cmake -B build --preset=Release-linux-clang-static \
|
|
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
|
|
|
|
- name: Build goalc (master)
|
|
run: |
|
|
cmake --build build --parallel $((`nproc`)) --target goalc
|
|
mv ./build ./build.master
|
|
|
|
- name: Checkout PR
|
|
uses: actions/checkout@v6
|
|
with:
|
|
clean: "false"
|
|
|
|
- name: CMake Generation (PR)
|
|
env:
|
|
CC: clang
|
|
CXX: clang++
|
|
run: |
|
|
cmake -B build --preset=Release-linux-clang-static \
|
|
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
|
|
|
|
- name: Build goalc (PR)
|
|
run: cmake --build build --parallel $((`nproc`)) --target goalc
|
|
|
|
- name: Compile and preserve (master)
|
|
run: |
|
|
./build.master/goalc/goalc --game jak1 --cmd "(make-group \"all-code\")"
|
|
./build.master/goalc/goalc --game jak2 --cmd "(make-group \"all-code\")"
|
|
./build.master/goalc/goalc --game jak3 --cmd "(make-group \"all-code\")"
|
|
mv ./out/jak1/obj ./out/jak1/obj.master
|
|
mv ./out/jak2/obj ./out/jak2/obj.master
|
|
mv ./out/jak3/obj ./out/jak3/obj.master
|
|
|
|
- name: Compile and preserve (PR)
|
|
run: |
|
|
./build/goalc/goalc --game jak1 --cmd "(make-group \"all-code\")"
|
|
./build/goalc/goalc --game jak2 --cmd "(make-group \"all-code\")"
|
|
./build/goalc/goalc --game jak3 --cmd "(make-group \"all-code\")"
|
|
mv ./out/jak1/obj ./out/jak1/obj.pr
|
|
mv ./out/jak2/obj ./out/jak2/obj.pr
|
|
mv ./out/jak3/obj ./out/jak3/obj.pr
|
|
|
|
- name: Compare Results and Produce Report
|
|
run: |
|
|
ls -l ./out/jak1
|
|
ls -l ./out/jak2
|
|
ls -l ./out/jak3
|
|
set +e
|
|
python ./scripts/gsrc/compare-compilation-outputs.py --base "./out/jak1/obj.master,./out/jak2/obj.master,./out/jak3/obj.master" --compare "./out/jak1/obj.pr,./out/jak2/obj.pr,./out/jak3/obj.pr" --markdown
|
|
SCRIPT_EXIT_CODE=$?
|
|
cat ./comp-diff-report.md >> $GITHUB_STEP_SUMMARY
|
|
if [ "$SCRIPT_EXIT_CODE" -ne 0 ]; then
|
|
exit 1
|
|
fi
|