Update and rename ci_src_examples_macos.yml to macos.yml

This commit is contained in:
Ray 2020-08-17 20:54:10 +02:00 committed by GitHub
parent 18aef2f781
commit 62302b1f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 13 deletions

View File

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

39
.github/workflows/macos.yml vendored Normal file
View File

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