mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-24 22:21:03 +00:00
Bumps [jidicula/clang-format-action](https://github.com/jidicula/clang-format-action) from 4.14.0 to 4.15.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jidicula/clang-format-action/releases">jidicula/clang-format-action's releases</a>.</em></p> <blockquote> <h2>v4.15.0</h2> <h2>What's Changed</h2> <ul> <li>build: bump docker/build-push-action from 6.9.0 to 6.10.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/225">jidicula/clang-format-action#225</a></li> <li>build: bump docker/build-push-action from 6.10.0 to 6.12.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/230">jidicula/clang-format-action#230</a></li> <li>build: bump docker/build-push-action from 6.12.0 to 6.13.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/231">jidicula/clang-format-action#231</a></li> <li>build: bump docker/login-action from 3.3.0 to 3.4.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/238">jidicula/clang-format-action#238</a></li> <li>build: bump docker/build-push-action from 6.13.0 to 6.15.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/233">jidicula/clang-format-action#233</a></li> <li>build: bump docker/metadata-action from 5.6.1 to 5.7.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/234">jidicula/clang-format-action#234</a></li> <li>Add clang-format 20 image build by <a href="https://github.com/offa"><code>@offa</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/239">jidicula/clang-format-action#239</a></li> <li>build: Fix Ubuntu distro for clang-format-20 by <a href="https://github.com/jidicula"><code>@jidicula</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/240">jidicula/clang-format-action#240</a></li> <li>Add clang-format 20 by <a href="https://github.com/offa"><code>@offa</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/237">jidicula/clang-format-action#237</a></li> <li>docs: Prepare for v4.15.0 by <a href="https://github.com/jidicula"><code>@jidicula</code></a> in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/241">jidicula/clang-format-action#241</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/offa"><code>@offa</code></a> made their first contribution in <a href="https://redirect.github.com/jidicula/clang-format-action/pull/239">jidicula/clang-format-action#239</a> 🎉</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/jidicula/clang-format-action/compare/v4.14.0...v4.15.0">https://github.com/jidicula/clang-format-action/compare/v4.14.0...v4.15.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="4726374d1a"><code>4726374</code></a> docs: Prepare for v4.15.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/241">#241</a>)</li> <li><a href="da40ba9cab"><code>da40ba9</code></a> Add clang-format 20 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/237">#237</a>)</li> <li><a href="87adf5cde9"><code>87adf5c</code></a> build: Fix Ubuntu distro for clang-format-20 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/240">#240</a>)</li> <li><a href="69a43b0ead"><code>69a43b0</code></a> Add clang-format 20 image build (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/239">#239</a>)</li> <li><a href="1781d20875"><code>1781d20</code></a> build: bump docker/metadata-action from 5.6.1 to 5.7.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/234">#234</a>)</li> <li><a href="c98140178a"><code>c981401</code></a> build: bump docker/build-push-action from 6.13.0 to 6.15.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/233">#233</a>)</li> <li><a href="06a6cbd3bb"><code>06a6cbd</code></a> build: bump docker/login-action from 3.3.0 to 3.4.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/238">#238</a>)</li> <li><a href="fbe58bf588"><code>fbe58bf</code></a> build: bump docker/build-push-action from 6.12.0 to 6.13.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/231">#231</a>)</li> <li><a href="a815d879b3"><code>a815d87</code></a> build: bump docker/build-push-action from 6.10.0 to 6.12.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/230">#230</a>)</li> <li><a href="bbe2072f30"><code>bbe2072</code></a> build: bump docker/build-push-action from 6.9.0 to 6.10.0 (<a href="https://redirect.github.com/jidicula/clang-format-action/issues/225">#225</a>)</li> <li>See full diff in <a href="https://github.com/jidicula/clang-format-action/compare/v4.14.0...v4.15.0">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 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>
409 lines
13 KiB
YAML
409 lines
13 KiB
YAML
name: Build
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
types: [opened, synchronize, reopened]
|
|
workflow_dispatch:
|
|
inputs:
|
|
verbose:
|
|
description: "Enable verbose logging during tests"
|
|
type: choice
|
|
required: false
|
|
default: "false"
|
|
options:
|
|
- "true"
|
|
- "false"
|
|
|
|
#concurrency:
|
|
# group: ${{ github.ref }}
|
|
# cancel-in-progress: true
|
|
|
|
jobs:
|
|
clang-tidy:
|
|
name: Run Clang Tidy
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
LLVM_VERSION: 20
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Ninja
|
|
uses: seanmiddleditch/gha-setup-ninja@v6
|
|
|
|
- name: Install Clang
|
|
run: |
|
|
wget https://apt.llvm.org/llvm.sh
|
|
chmod +x llvm.sh
|
|
sudo ./llvm.sh ${{ env.LLVM_VERSION }}
|
|
sudo apt install -y clang-tidy-${{ env.LLVM_VERSION }}
|
|
sudo apt install -y clang-${{ env.LLVM_VERSION }} lld-${{ env.LLVM_VERSION }}
|
|
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${{ env.LLVM_VERSION }} 100
|
|
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${{ env.LLVM_VERSION }} 100
|
|
sudo update-alternatives --set cc /usr/bin/clang-${{ env.LLVM_VERSION }}
|
|
sudo update-alternatives --set c++ /usr/bin/clang++-${{ env.LLVM_VERSION }}
|
|
|
|
- name: CMake Build
|
|
run: cmake --preset=release -DMOMO_ENABLE_CLANG_TIDY=On && cmake --build --preset=release
|
|
|
|
verify-formatting:
|
|
name: Verify Formatting
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Verify Formatting
|
|
uses: jidicula/clang-format-action@v4.15.0
|
|
with:
|
|
clang-format-version: '19'
|
|
check-path: 'src'
|
|
|
|
build-apiset-dumper:
|
|
name: Build API Set Dumper
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Ninja
|
|
uses: seanmiddleditch/gha-setup-ninja@v6
|
|
|
|
- name: Enable Developer Command Prompt
|
|
uses: ilammy/msvc-dev-cmd@v1.13.0
|
|
|
|
- name: CMake Build
|
|
run: cmake --preset=release && cmake --build --preset=release -t dump-apiset
|
|
|
|
- name: Upload Artifacts
|
|
uses: pyTooling/upload-artifact@v4
|
|
with:
|
|
name: Temp API Set Dumper
|
|
working-directory: build/release/artifacts/
|
|
path: "*"
|
|
|
|
create-emulation-root:
|
|
name: Create Emulation Root
|
|
runs-on: ${{ matrix.runner }}
|
|
needs: [build-apiset-dumper]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- Windows 2025
|
|
- Windows 2022
|
|
- Windows 2019
|
|
include:
|
|
- platform: Windows 2025
|
|
runner: windows-2025
|
|
- platform: Windows 2022
|
|
runner: windows-2022
|
|
- platform: Windows 2019
|
|
runner: windows-2019
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download DirectX Runtime
|
|
run: curl --connect-timeout 20 --max-time 200 --retry 5 --retry-delay 2 --retry-max-time 200 -L -o directx_Jun2010_redist.exe https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe
|
|
|
|
- name: Extract DirectX Runtime
|
|
run: "cmd /c \"start /wait directx_Jun2010_redist.exe /Q /T:${{github.workspace}}/dxrt\""
|
|
|
|
- name: Install DirectX Runtime
|
|
run: "cmd /c \"start /wait .\\dxrt\\dxsetup.exe /silent\""
|
|
|
|
- name: Download API Set Dumper
|
|
uses: pyTooling/download-artifact@v4
|
|
with:
|
|
name: Temp API Set Dumper
|
|
path: build/release/artifacts
|
|
|
|
- name: Create Emulation Root
|
|
run: src/tools/create-root.bat
|
|
|
|
- name: Dump API Set
|
|
run: cd root && ../build/release/artifacts/dump-apiset.exe
|
|
|
|
- name: Upload Artifacts
|
|
uses: pyTooling/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.platform }} Emulation Root
|
|
path: "*"
|
|
working-directory: root
|
|
retention-days: 1
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.runner }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- Windows x86_64
|
|
- Linux x86_64 GCC
|
|
- Linux x86_64 GCC Sanitizer
|
|
- Linux x86_64 Clang
|
|
- macOS arm64
|
|
- macOS x86_64
|
|
- iOS arm64
|
|
- Android x86_64
|
|
- Android arm64-v8a
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
include:
|
|
- configuration: Debug
|
|
preset: debug
|
|
- configuration: Release
|
|
preset: release
|
|
- platform: Windows x86_64
|
|
runner: windows-latest
|
|
- platform: Linux x86_64 GCC Sanitizer
|
|
runner: ubuntu-24.04
|
|
cmake-options: "-DMOMO_ENABLE_SANITIZER=On"
|
|
- platform: Linux x86_64 GCC
|
|
runner: ubuntu-24.04
|
|
- platform: Linux x86_64 Clang
|
|
runner: ubuntu-24.04
|
|
clang-version: 20
|
|
- platform: iOS arm64
|
|
runner: macos-latest
|
|
cmake-options: "-DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/toolchain/ios.cmake"
|
|
- platform: macOS arm64
|
|
runner: macos-latest
|
|
- platform: macOS x86_64
|
|
runner: macos-13
|
|
- platform: Android x86_64
|
|
runner: ubuntu-24.04
|
|
abi: x86_64
|
|
cmake-options: "-DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/toolchain/android-ndk.cmake"
|
|
- platform: Android arm64-v8a
|
|
runner: ubuntu-24.04
|
|
abi: arm64-v8a
|
|
cmake-options: "-DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/toolchain/android-ndk.cmake"
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Ninja
|
|
uses: seanmiddleditch/gha-setup-ninja@v6
|
|
|
|
- name: Install Clang
|
|
if: "${{ matrix.platform == 'Linux x86_64 Clang' }}"
|
|
run: |
|
|
wget https://apt.llvm.org/llvm.sh
|
|
chmod +x llvm.sh
|
|
sudo ./llvm.sh ${{ matrix.clang-version }}
|
|
sudo apt install -y clang-${{ matrix.clang-version }} lld-${{ matrix.clang-version }}
|
|
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${{ matrix.clang-version }} 100
|
|
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${{ matrix.clang-version }} 100
|
|
sudo update-alternatives --set cc /usr/bin/clang-${{ matrix.clang-version }}
|
|
sudo update-alternatives --set c++ /usr/bin/clang++-${{ matrix.clang-version }}
|
|
|
|
- name: Enable Developer Command Prompt
|
|
uses: ilammy/msvc-dev-cmd@v1.13.0
|
|
if: ${{ startsWith(matrix.platform, 'Windows') }}
|
|
|
|
- uses: nttld/setup-ndk@v1
|
|
id: setup-ndk
|
|
if: ${{ startsWith(matrix.platform, 'Android') }}
|
|
with:
|
|
ndk-version: r26d
|
|
add-to-path: false
|
|
|
|
- name: Setup Environment Variables
|
|
if: ${{ startsWith(matrix.platform, 'Android') }}
|
|
run: |
|
|
echo "ANDROID_NDK_ROOT=${{ steps.setup-ndk.outputs.ndk-path }}" >> $GITHUB_ENV
|
|
echo "ANDROID_ABI=${{ matrix.abi }}" >> $GITHUB_ENV
|
|
|
|
- name: CMake Build
|
|
run: cmake --preset=${{matrix.preset}} ${{matrix.cmake-options}} && cmake --build --preset=${{matrix.preset}}
|
|
|
|
- name: Upload Artifacts
|
|
uses: pyTooling/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.platform }} ${{matrix.configuration}} Artifacts
|
|
working-directory: build/${{matrix.preset}}/artifacts/
|
|
path: "*"
|
|
|
|
- name: Upload Test Configuration
|
|
uses: actions/upload-artifact@v4.6.2
|
|
with:
|
|
name: Temp ${{ matrix.platform }} ${{matrix.configuration}} Test Config
|
|
path: "build/${{matrix.preset}}/**/CTestTestfile.cmake"
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ${{ matrix.runner }}
|
|
needs: [create-emulation-root, build]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- Windows x86_64
|
|
- Linux x86_64 GCC
|
|
- Linux x86_64 GCC Sanitizer
|
|
- Linux x86_64 Clang
|
|
- macOS arm64
|
|
- macOS x86_64
|
|
emulation-root:
|
|
- Windows 2025
|
|
- Windows 2022
|
|
- Windows 2019
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
include:
|
|
- configuration: Debug
|
|
preset: debug
|
|
- configuration: Release
|
|
preset: release
|
|
- platform: Windows x86_64
|
|
runner: windows-latest
|
|
- platform: Linux x86_64 GCC
|
|
runner: ubuntu-24.04
|
|
- platform: Linux x86_64 GCC Sanitizer
|
|
runner: ubuntu-24.04
|
|
- platform: Linux x86_64 Clang
|
|
runner: ubuntu-24.04
|
|
- platform: macOS arm64
|
|
runner: macos-latest
|
|
- platform: macOS x86_64
|
|
runner: macos-13
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup Environment Variables
|
|
if: ${{ contains(matrix.platform, 'Sanitizer') }}
|
|
run: |
|
|
echo "ASAN_OPTIONS=detect_odr_violation=0" >> $GITHUB_ENV
|
|
|
|
- name: Download Test Configuration
|
|
uses: actions/download-artifact@v4.2.0
|
|
with:
|
|
name: Temp ${{ matrix.platform }} ${{matrix.configuration}} Test Config
|
|
path: build/${{matrix.preset}}
|
|
|
|
- name: Download Artifacts
|
|
uses: pyTooling/download-artifact@v4
|
|
with:
|
|
name: ${{ matrix.platform }} ${{matrix.configuration}} Artifacts
|
|
path: build/${{matrix.preset}}/artifacts
|
|
|
|
- name: Download Windows Artifacts
|
|
uses: pyTooling/download-artifact@v4
|
|
if: "${{ matrix.platform != 'Windows x86_64' }}"
|
|
with:
|
|
name: Windows x86_64 ${{matrix.configuration}} Artifacts
|
|
path: build/${{matrix.preset}}/artifacts
|
|
|
|
- name: Download Emulation Root
|
|
uses: pyTooling/download-artifact@v4
|
|
with:
|
|
name: ${{ matrix.emulation-root }} Emulation Root
|
|
path: build/${{matrix.preset}}/artifacts/root
|
|
|
|
- name: Copy Test Sample
|
|
run: cp build/${{matrix.preset}}/artifacts/test-sample.exe build/${{matrix.preset}}/artifacts/root/filesys/c/
|
|
|
|
- name: CMake Test
|
|
run: cd build/${{matrix.preset}} && ctest --verbose -j
|
|
env:
|
|
EMULATOR_ROOT: ${{github.workspace}}/build/${{matrix.preset}}/artifacts/root
|
|
EMULATOR_VERBOSE: ${{ github.event.inputs.verbose }}
|
|
ANALYSIS_SAMPLE: ${{github.workspace}}/build/${{matrix.preset}}/artifacts/dump-apiset.exe
|
|
|
|
smoke-test-android:
|
|
name: Smoke Test Android
|
|
runs-on: ${{ matrix.runner }}
|
|
needs: [create-emulation-root, build]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
architecture:
|
|
- x86_64
|
|
#- arm64-v8a
|
|
emulation-root:
|
|
- Windows 2025
|
|
- Windows 2022
|
|
- Windows 2019
|
|
configuration:
|
|
- Debug
|
|
- Release
|
|
include:
|
|
- configuration: Debug
|
|
preset: debug
|
|
- configuration: Release
|
|
preset: release
|
|
- architecture: x86_64
|
|
runner: ubuntu-24.04
|
|
#- architecture: arm64-v8a
|
|
# runner: macos-latest
|
|
steps:
|
|
- name: Enable KVM
|
|
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
|
|
run: |
|
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
|
sudo udevadm control --reload-rules
|
|
sudo udevadm trigger --name-match=kvm
|
|
|
|
- name: Download Artifacts
|
|
uses: pyTooling/download-artifact@v4
|
|
with:
|
|
name: Android ${{matrix.architecture}} ${{matrix.configuration}} Artifacts
|
|
path: build/${{matrix.preset}}/artifacts
|
|
|
|
- name: Download Windows Artifacts
|
|
uses: pyTooling/download-artifact@v4
|
|
with:
|
|
name: Windows x86_64 ${{matrix.configuration}} Artifacts
|
|
path: build/${{matrix.preset}}/artifacts
|
|
|
|
- name: Download Emulation Root
|
|
uses: pyTooling/download-artifact@v4
|
|
with:
|
|
name: ${{ matrix.emulation-root }} Emulation Root
|
|
path: build/${{matrix.preset}}/artifacts/root
|
|
|
|
- name: Copy Test Sample
|
|
run: cp build/${{matrix.preset}}/artifacts/test-sample.exe build/${{matrix.preset}}/artifacts/root/filesys/c/
|
|
|
|
- name: Run Test
|
|
uses: reactivecircus/android-emulator-runner@v2.33.0
|
|
with:
|
|
api-level: 29
|
|
arch: ${{matrix.architecture}}
|
|
script: "adb push build/${{matrix.preset}}/artifacts/* /data/local/tmp && adb shell \"cd /data/local/tmp && export LD_LIBRARY_PATH=. && chmod +x ./analyzer && ./analyzer -e ./root c:/test-sample.exe\""
|
|
|
|
summary:
|
|
name: Pipeline Summary
|
|
runs-on: ubuntu-24.04
|
|
needs: [clang-tidy, build-apiset-dumper, smoke-test-android, create-emulation-root, build, test, verify-formatting]
|
|
if: always()
|
|
steps:
|
|
- uses: geekyeggo/delete-artifact@v5
|
|
with:
|
|
name: 'Temp *'
|
|
|
|
- name: Pipeline failed
|
|
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
|
run: exit 1
|