mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-09-11 01:23:15 -04:00
c16f1533e5
* docs(macos): document Setup.pkg installation Add Apple Silicon macOS CI coverage for runtime configuration, substrate tests, and Setup.pkg packaging alongside the macOS installation instructions. * macos: pin Apple Silicon deployment target * fix(macos): restore Retro Rewind local builds
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: build-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
translator:
|
|
name: Translator (build + test)
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: '8.0.x'
|
|
|
|
- name: Restore
|
|
run: dotnet restore translator/Translator.sln
|
|
|
|
- name: Build
|
|
run: dotnet build translator/Translator.sln -c Release --no-restore
|
|
|
|
- name: Test
|
|
run: dotnet test translator/Translator.sln -c Release --no-build --verbosity normal
|
|
|
|
macos_substrate:
|
|
name: macOS arm64 (configure + substrate tests)
|
|
runs-on: macos-14
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Configure native runtime
|
|
shell: bash
|
|
run: |
|
|
test "$(uname -m)" = arm64
|
|
cmake -S runtime -B build-macos -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release -DMKW_BUILD_PRODUCTS=OFF
|
|
grep -qx 'CMAKE_OSX_DEPLOYMENT_TARGET:STRING=14.0' \
|
|
build-macos/CMakeCache.txt
|
|
|
|
- name: Build macOS portability targets
|
|
shell: bash
|
|
run: |
|
|
cmake --build build-macos --target \
|
|
mkw_platform_paths_tests \
|
|
mkw_macos_native_compile \
|
|
mkw_macos_context_abi_tests \
|
|
mkw_macos_host_context_tests \
|
|
mkw_macos_guest_flat_memory_tests
|
|
|
|
- name: Test execution substrate
|
|
shell: bash
|
|
run: ctest --test-dir build-macos --output-on-failure
|