Skip to content

Commit

Permalink
Build for Mac as well, both x86_64 and ARM64.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Jan 4, 2024
1 parent 2c1bdc4 commit ae0eaee
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/meshoptimizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,36 @@ jobs:
with:
name: meshoptimizer-${{ env.MESHOPTIMIZER_VERSION }}-${{ matrix.os }}
path: install

mac:
name: ${{ matrix.os }}
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- os: macos11-x64
runs-on: macos-11
steps:
- name: Install base build tools
run: |
brew install ninja
- name: Clone MeshOptimizer
uses: actions/checkout@v3
with:
repository: zeux/meshoptimizer
ref: v${{ env.MESHOPTIMIZER_VERSION }}
path: meshoptimizer
- name: Build & install
run: |
mkdir meshoptimizer-build && cd meshoptimizer-build
cmake ../meshoptimizer \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$(pwd)/../install \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-G Ninja
ninja install/strip
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: meshoptimizer-${{ env.MESHOPTIMIZER_VERSION }}-${{ matrix.os }}
path: install

0 comments on commit ae0eaee

Please sign in to comment.