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>
65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
name: Windows Build MSVC
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
cmakePreset:
|
|
required: true
|
|
type: string
|
|
cachePrefix:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build:
|
|
name: MSVC
|
|
runs-on: windows-2022
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install NASM
|
|
# TODO - Simplify this with just the first command once choco 2.0 rolls out everywhere
|
|
run: |
|
|
$chocoVersion = choco --version
|
|
if ($chocoVersion.StartsWith("2.")) {
|
|
choco install nasm --source="${{ github.workspace }}/third-party/nasm"
|
|
} else {
|
|
choco install ${{ github.workspace }}/third-party/nasm/old/nasm.2.15.05.nupkg
|
|
}
|
|
|
|
- name: Setup sccache
|
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
|
with:
|
|
variant: sccache
|
|
key: windows-2022-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }}
|
|
restore-keys: windows-2022-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}
|
|
max-size: 1000M
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
# Fixes an issue with the image causing builds to fail - https://github.com/actions/runner-images/issues/8598
|
|
- name: Remove Strawberry Perl from PATH
|
|
run: |
|
|
$env:PATH = $env:PATH -replace "C:\\Strawberry\\c\\bin;", ""
|
|
"PATH=$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Append
|
|
|
|
- name: CMake Generation - MSVC
|
|
shell: cmd
|
|
run: cmake -B build --preset=${{ inputs.cmakePreset }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache .
|
|
|
|
- name: Build Project
|
|
shell: cmd
|
|
run: |
|
|
set CL=/MP
|
|
cmake --build build --parallel %NUMBER_OF_PROCESSORS%
|
|
|
|
- name: Run Tests
|
|
timeout-minutes: 10
|
|
env:
|
|
GTEST_OUTPUT: "xml:opengoal-test-report.xml"
|
|
run: |
|
|
./build/bin/goalc-test.exe --gtest_color=yes --gtest_brief=0 --gtest_filter="-*MANUAL_TEST*"
|