Skip to content

macOS build with extensions #4

macOS build with extensions

macOS build with extensions #4

name: macOS build with extensions
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Installing dependencies (Homebrew packages)
run: |
brew install sqlite
brew install openssl
brew install fcgi
brew install mysql-client
brew install gmp
brew install zmq
brew install leveldb
brew install pcre
- name: Installing dependency hiredis
run: |
git clone https://github.com/redis/hiredis.git
cd hiredis
git fetch --all --tags
git checkout tags/v1.0.2
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
sudo cmake --install build
- name: Installing dependency raylib
run: |
git clone https://github.com/raysan5/raylib.git
cd raylib
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..
make
sudo make install
- name: Configure CMake
run: |
cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXTENSIONS=1
- name: Build
run: |
cmake --build ${{ github.workspace }}/build
- name: Running tests
run: |
${{ github.workspace }}/scripts/test.sh
env:
HOOK_HOME: ${{ github.workspace }}