Browse Source

Update and rename ci_src_examples_macos.yml to macos.yml

pull/1357/head
Ray 4 years ago
committed by GitHub
parent
commit
62302b1f71
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 13 deletions
  1. +0
    -13
      .github/workflows/ci_src_examples_macos.yml
  2. +39
    -0
      .github/workflows/macos.yml

+ 0
- 13
.github/workflows/ci_src_examples_macos.yml 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
- 0
.github/workflows/macos.yml 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

Loading…
Cancel
Save