Update and rename ci_src_examples_macos.yml to macos.yml
This commit is contained in:
parent
18aef2f781
commit
62302b1f71
13
.github/workflows/ci_src_examples_macos.yml
vendored
13
.github/workflows/ci_src_examples_macos.yml
vendored
@ -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
39
.github/workflows/macos.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user