mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-11 16:36:59 +00:00
Hopefully get a macOS build running
This commit is contained in:
parent
e3897b4233
commit
e4fd5de139
2 changed files with 43 additions and 5 deletions
44
.github/workflows/build.yml
vendored
44
.github/workflows/build.yml
vendored
|
|
@ -31,7 +31,6 @@ jobs:
|
|||
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
echo "commit=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
Linux:
|
||||
name: Linux
|
||||
runs-on: ubuntu-24.04
|
||||
|
|
@ -78,8 +77,9 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake -G Ninja -B "${{env.BUILD_DIR}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
run: cmake -G Ninja -B "${{env.BUILD_DIR}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
|
||||
-DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl `
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
|
||||
- name: Build
|
||||
run: cmake --build "${{env.BUILD_DIR}}" --config ${{env.BUILD_TYPE}} --parallel $env:NUMBER_OF_PROCESSORS
|
||||
|
|
@ -94,3 +94,41 @@ jobs:
|
|||
with:
|
||||
name: Pound-win64-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash}}
|
||||
path: artifact/
|
||||
|
||||
macOS:
|
||||
name: macOS
|
||||
runs-on: macos-14
|
||||
needs: get-info
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [x86_64, arm64]
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
brew update
|
||||
brew install cmake ninja ccache
|
||||
|
||||
- name: Configure CMake for ${{ matrix.arch }}
|
||||
run: >
|
||||
cmake -G Ninja -B "${{env.BUILD_DIR}}"
|
||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
|
||||
|
||||
- name: Build for ${{ matrix.arch }}
|
||||
run: cmake --build "${{env.BUILD_DIR}}" --config ${{env.BUILD_TYPE}} --parallel $(sysctl -n hw.logicalcpu)
|
||||
|
||||
- name: Prepare Artifact Folder
|
||||
run: |
|
||||
mkdir -p artifact
|
||||
cp -r ${{env.BUILD_DIR}}/Pound artifact/Pound-${{ matrix.arch }}-macOS-${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Upload macOS Artifact
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
name: Pound-macOS-${{ matrix.arch }}-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash }}
|
||||
path: artifact/
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ Also check out [obomori](https://github.com/Nikilites/oboromi), another emulator
|
|||
#### Android
|
||||
<a><img src="https://img.shields.io/badge/current Android A64 build-soon-cc00cc.svg"></a>
|
||||
#### macOS
|
||||
<a><img src="https://img.shields.io/badge/current Darwin x64 build-none-aaaaaa.svg"></a>
|
||||
<a><img src="https://img.shields.io/badge/current Darwin A64 build-none-aaaaaa.svg"></a>
|
||||
<a><img src="https://img.shields.io/badge/current Darwin x64 build-soon-cc00cc.svg"></a>
|
||||
<a><img src="https://img.shields.io/badge/current Darwin A64 build-soon-cc00cc.svg"></a>
|
||||
|
||||
#### Windows
|
||||
<a><img src="https://img.shields.io/badge/current Windows x64 build-soon-cc00cc.svg"></a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue