2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

build osx native libraries

This commit is contained in:
anggape
2023-07-22 15:16:54 +07:00
parent 2f5102a246
commit f89e11dacb

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 }}