mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
7b7885e7a8
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action) from 1.2.13 to 1.2.14. <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.14</h2> <h2>What's Changed</h2> <ul> <li>Add sccache to PATH after installation by <a href="https://github.com/kendalharland"><code>@kendalharland</code></a> in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/204">hendrikmuhs/ccache-action#204</a></li> <li>Make ccache-action respect environment variables by <a href="https://github.com/TrentHouliston"><code>@TrentHouliston</code></a> in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/217">hendrikmuhs/ccache-action#217</a></li> <li>updates</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/kendalharland"><code>@kendalharland</code></a> made their first contribution in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/204">hendrikmuhs/ccache-action#204</a></li> <li><a href="https://github.com/cclauss"><code>@cclauss</code></a> made their first contribution in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/213">hendrikmuhs/ccache-action#213</a></li> <li><a href="https://github.com/TrentHouliston"><code>@TrentHouliston</code></a> made their first contribution in <a href="https://redirect.github.com/hendrikmuhs/ccache-action/pull/217">hendrikmuhs/ccache-action#217</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/hendrikmuhs/ccache-action/compare/v1...v1.2.14">https://github.com/hendrikmuhs/ccache-action/compare/v1...v1.2.14</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="ed74d11c0b
"><code>ed74d11</code></a> Bump <code>@types/node</code> from 22.0.0 to 22.1.0 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/222">#222</a>)</li> <li><a href="a92dd99d2c
"><code>a92dd99</code></a> Bump <code>@types/node</code> from 20.14.11 to 22.0.0 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/220">#220</a>)</li> <li><a href="aa7d294112
"><code>aa7d294</code></a> Bump typescript from 5.5.3 to 5.5.4 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/218">#218</a>)</li> <li><a href="6f08740308
"><code>6f08740</code></a> Make ccache-action respect environment variables (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/217">#217</a>)</li> <li><a href="ed979992cd
"><code>ed97999</code></a> Bump <code>@types/node</code> from 20.14.10 to 20.14.11 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/216">#216</a>)</li> <li><a href="ca1e5062f3
"><code>ca1e506</code></a> Bump actions/checkout from 2 to 4 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/214">#214</a>)</li> <li><a href="069136ab7a
"><code>069136a</code></a> Bump <code>@types/node</code> from 20.14.9 to 20.14.10 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/212">#212</a>)</li> <li><a href="3cf745af56
"><code>3cf745a</code></a> Bump typescript from 5.5.2 to 5.5.3 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/211">#211</a>)</li> <li><a href="9a0cc15296
"><code>9a0cc15</code></a> Keep GitHub Actions up to date with GitHub's Dependabot (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/213">#213</a>)</li> <li><a href="b7c0e162a7
"><code>b7c0e16</code></a> Bump <code>@types/node</code> from 20.14.8 to 20.14.9 (<a href="https://redirect.github.com/hendrikmuhs/ccache-action/issues/210">#210</a>)</li> <li>Additional commits viewable in <a href="https://github.com/hendrikmuhs/ccache-action/compare/v1.2.13...v1.2.14">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=hendrikmuhs/ccache-action&package-manager=github_actions&previous-version=1.2.13&new-version=1.2.14)](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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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>
99 lines
3.1 KiB
YAML
99 lines
3.1 KiB
YAML
name: Compilation Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Compare
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
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.14
|
|
with:
|
|
variant: sccache
|
|
key: linux-ubuntu-20.04--Release-linux-clang-asan-${{ github.sha }}
|
|
restore-keys: linux-ubuntu-20.04--Release-linux-clang-asan
|
|
max-size: 1000M
|
|
|
|
- name: CMake Generation (master)
|
|
env:
|
|
CC: clang
|
|
CXX: clang++
|
|
run: |
|
|
cmake -B build --preset=Release-linux-clang-asan \
|
|
-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@v4
|
|
with:
|
|
clean: "false"
|
|
|
|
- name: CMake Generation (PR)
|
|
env:
|
|
CC: clang
|
|
CXX: clang++
|
|
run: |
|
|
cmake -B build --preset=Release-linux-clang-asan \
|
|
-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
|
|
|
|
|