Watch
2
0
Fork
You've already forked raylib-cs
0

build osx native libraries

This commit is contained in:
anggape 2023-07-22 15:16:54 +07:00
commit f89e11dacb
No known key found for this signature in database
GPG key ID: 318EF680D0181D86

View file

@ -52,6 +52,32 @@ jobs:
-D BUILD_EXAMPLES=OFF
cmake --build build --config Release
build-osx:
runs-on: macos-latest
needs: prepare
strategy:
matrix:
name: [arm64, x64]
include:
- name: arm64
arch: arm64
- name: x64
arch: x86_64
steps:
- name: build raylib
env:
version: ${{ needs.prepare.outputs.version }}
run: |
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/refs/tags/${version}.zip
unzip -qq raylib.zip
cmake -S raylib-${version} \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_OSX_ARCHITECTURES=${arch} \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_EXAMPLES=OFF
cmake --build build --config Release
# jobs:
# build:
# name: Build on dotnet using ${{ matrix.os }}