summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/macos.yml
diff options
context:
space:
mode:
authorRay <[email protected]>2020-08-17 20:54:10 +0200
committerGitHub <[email protected]>2020-08-17 20:54:10 +0200
commit62302b1f71d9f2ae266b7b1761078c458fcfaeac (patch)
tree2663f71525eaf8acbc43a3c32202ef9fbb15b084 /.github/workflows/macos.yml
parent18aef2f781f401493cebbf619002d21ab36d6011 (diff)
downloadraylib-62302b1f71d9f2ae266b7b1761078c458fcfaeac.tar.gz
raylib-62302b1f71d9f2ae266b7b1761078c458fcfaeac.zip
Update and rename ci_src_examples_macos.yml to macos.yml
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r--.github/workflows/macos.yml39
1 files changed, 39 insertions, 0 deletions
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