Skip to content

fix FFI cdecls

fix FFI cdecls #1852

Workflow file for this run

name: macos
on: [push, pull_request]
jobs:
build:
runs-on: macos-11
steps:
- name: XCode version
run: xcode-select -p
- name: Check out Git repository
uses: actions/checkout@v2
- name: Cache for ccache
uses: actions/cache@v2
env:
cache-name: cache-ccache
with:
path: ~/.ccache # ccache cache files are stored in `~/.ccache` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'Makefile.defs', 'Makefile.third', '**/CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Homebrew install dependencies
# Compared to the README, adds ccache for faster compilation times and removes sh5sum to prevent some conflict with coreutils, and gnu-getopt because we're not using kodev
run: brew install ccache nasm ragel binutils coreutils libtool autoconf automake cmake makedepend sdl2 lua@5.1 luarocks gettext pkg-config wget gnu-getopt grep bison
- name: Building in progress…
run: |
export MACOSX_DEPLOYMENT_TARGET=11;
export PATH="$(brew --prefix)/opt/gettext/bin:$(brew --prefix)/opt/gnu-getopt/bin:$(brew --prefix)/opt/bison/bin:$(brew --prefix)/opt/grep/libexec/gnubin:${PATH}";
make fetchthirdparty && make