From f89e11dacba63e5317731f0b93e834f837fa7d06 Mon Sep 17 00:00:00 2001 From: anggape Date: Sat, 22 Jul 2023 15:16:54 +0700 Subject: [PATCH] build osx native libraries --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1fce369..c36a154 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}