mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 01:36:57 +00:00
Fix macOS issue
This commit is contained in:
parent
22d46892d1
commit
b72bfec735
1 changed files with 28 additions and 28 deletions
56
.github/workflows/build.yml
vendored
56
.github/workflows/build.yml
vendored
|
|
@ -94,42 +94,42 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: Pound-win64-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash}}
|
name: Pound-win64-${{env.BUILD_TYPE}}-${{ needs.get-info.outputs.commit }}-${{needs.get-info.outputs.shorthash}}
|
||||||
path: artifact/
|
path: artifact/
|
||||||
|
macOS:
|
||||||
macOS:
|
name: macOS ${{ matrix.arch }}
|
||||||
name: macOS
|
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
needs: get-info
|
needs: get-info
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [x86_64, arm64]
|
arch: [x86_64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install cmake ninja ccache
|
brew install cmake ninja ccache
|
||||||
|
|
||||||
- name: Configure CMake for ${{ matrix.arch }}
|
- name: Configure CMake for ${{ matrix.arch }}
|
||||||
run: >
|
run: >
|
||||||
cmake -G Ninja -B "${{env.BUILD_DIR}}"
|
cmake -G Ninja -B "${{env.BUILD_DIR}}"
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
|
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
||||||
|
|
||||||
- name: Build for ${{ matrix.arch }}
|
- name: Build for ${{ matrix.arch }}
|
||||||
run: cmake --build "${{env.BUILD_DIR}}" --config ${{env.BUILD_TYPE}} --parallel $(sysctl -n hw.logicalcpu)
|
run: cmake --build "${{env.BUILD_DIR}}" --config ${{env.BUILD_TYPE}} --parallel $(sysctl -n hw.logicalcpu)
|
||||||
|
|
||||||
- name: Prepare Artifact Folder
|
- name: Prepare Artifact Folder
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifact
|
mkdir -p artifact
|
||||||
cp -r ${{env.BUILD_DIR}}/Pound artifact/Pound-${{ matrix.arch }}-macOS-${{env.BUILD_TYPE}}
|
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/
|
||||||
|
|
||||||
- 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/
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue