From 62302b1f71d9f2ae266b7b1761078c458fcfaeac Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 17 Aug 2020 20:54:10 +0200 Subject: [PATCH] Update and rename ci_src_examples_macos.yml to macos.yml --- .github/workflows/ci_src_examples_macos.yml | 13 ------- .github/workflows/macos.yml | 39 +++++++++++++++++++++ 2 files changed, 39 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/ci_src_examples_macos.yml create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/ci_src_examples_macos.yml b/.github/workflows/ci_src_examples_macos.yml deleted file mode 100644 index 595e1990..00000000 --- a/.github/workflows/ci_src_examples_macos.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: CI - Source & Examples - macOS - -on: [push, pull_request] - -jobs: - build: - runs-on: macos-latest - steps: - - uses: actions/checkout@v1 - - name: make src - run: cd src && make PLATFORM=PLATFORM_DESKTOP - - name: make examples - run: cd examples && make PLATFORM=PLATFORM_DESKTOP diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..2bff84bf --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,39 @@ +name: CI - Source & Examples - macOS + +on: [push, pull_request] + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Setup Environment + run: | + mkdir build + cd build + mkdir raylib_3.1_macos + cd raylib_3.1_macos + mkdir include + mkdir lib + cd ../../raylib + + - name: Build Library + run: | + cd src + make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC RAYLIB_RELEASE_PATH="../../build/raylib_3.1_macos/lib + make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=SHARED RAYLIB_RELEASE_PATH="../../build/raylib_3.1_macos/lib + cd .. + + - name: Generate Artifacts + run: | + cd .. + copy /Y src/raylib.h ../../build/raylib_3.1_macos/include + cd ../build + zip raylib_3.1_macos.zip raylib_3.1_macos + + - uses: actions/upload-artifact@v2 + with: + name: raylib_3.1_macos.zip + path: raylib_3.1_macos.zip