mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add macOS and Windows ARM64 builds; fix memory_monitor for macOS
Add macOS matrix job (arm64/macos-15, x86-64/macos-13) using Homebrew. Add Windows ARM64 job using windows-11-arm runner with MSYS2 CLANGARM64. Fix memory_monitor.cpp: add __APPLE__ branch using sysctl hw.memsize/hw.usermem instead of Linux-only sysinfo/proc.
This commit is contained in:
parent
85e28ccec9
commit
880960dcc1
2 changed files with 107 additions and 2 deletions
85
.github/workflows/build.yml
vendored
85
.github/workflows/build.yml
vendored
|
|
@ -65,6 +65,91 @@ jobs:
|
|||
path: build/bin/
|
||||
if-no-files-found: error
|
||||
|
||||
build-macos:
|
||||
name: Build (macOS ${{ matrix.arch }})
|
||||
runs-on: ${{ matrix.runner }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- arch: arm64
|
||||
runner: macos-15
|
||||
- arch: x86-64
|
||||
runner: macos-13
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Clone ImGui
|
||||
run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
brew install cmake pkg-config sdl2 glew glm openssl@3 zlib ffmpeg unicorn
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
BREW=$(brew --prefix)
|
||||
export PKG_CONFIG_PATH="$BREW/lib/pkgconfig:$(brew --prefix ffmpeg)/lib/pkgconfig:$(brew --prefix openssl@3)/lib/pkgconfig"
|
||||
cmake -S . -B build \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_PREFIX_PATH="$BREW" \
|
||||
-DOPENSSL_ROOT_DIR="$(brew --prefix openssl@3)"
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --parallel $(sysctl -n hw.logicalcpu)
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wowee-macos-${{ matrix.arch }}
|
||||
path: build/bin/
|
||||
if-no-files-found: error
|
||||
|
||||
build-windows-arm:
|
||||
name: Build (windows-arm64)
|
||||
runs-on: windows-11-arm
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
msystem: CLANGARM64
|
||||
update: false
|
||||
install: >-
|
||||
mingw-w64-clang-aarch64-cmake
|
||||
mingw-w64-clang-aarch64-clang
|
||||
mingw-w64-clang-aarch64-pkgconf
|
||||
mingw-w64-clang-aarch64-SDL2
|
||||
mingw-w64-clang-aarch64-glew
|
||||
mingw-w64-clang-aarch64-glm
|
||||
mingw-w64-clang-aarch64-openssl
|
||||
mingw-w64-clang-aarch64-zlib
|
||||
mingw-w64-clang-aarch64-ffmpeg
|
||||
git
|
||||
|
||||
- name: Clone ImGui
|
||||
shell: msys2 {0}
|
||||
run: git clone --depth 1 https://github.com/ocornut/imgui.git extern/imgui
|
||||
|
||||
- name: Configure
|
||||
shell: msys2 {0}
|
||||
run: cmake -S . -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
- name: Build
|
||||
shell: msys2 {0}
|
||||
run: cmake --build build --parallel $(nproc)
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wowee-windows-arm64
|
||||
path: build/bin/
|
||||
if-no-files-found: error
|
||||
|
||||
build-windows:
|
||||
name: Build (windows-x86-64)
|
||||
runs-on: windows-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue