2020-12-11 14:16:29 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: XCode version
|
|
|
|
run: xcode-select -p
|
|
|
|
|
|
|
|
- name: Check out Git repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Homebrew install dependencies
|
|
|
|
# Compared to the README, adds ccache for faster compilation times and removes sh5sum to prevent some conflict with coreutils
|
|
|
|
# Compared to the emulator, adds p7zip and removes sdl2.
|
2020-12-18 17:26:32 +00:00
|
|
|
run: brew install ccache nasm ragel binutils coreutils libtool autoconf automake cmake makedepend lua@5.1 luarocks gettext gnu-getopt pkg-config wget p7zip
|
2020-12-11 14:16:29 +00:00
|
|
|
|
|
|
|
- name: Building in progress…
|
2020-12-18 17:26:32 +00:00
|
|
|
run: export MACOSX_DEPLOYMENT_TARGET=10.14 PATH="$(brew --prefix)/opt/gettext/bin:$(brew --prefix)/opt/gnu-getopt/bin:${PATH}" && ./kodev release macos
|
2020-12-11 14:16:29 +00:00
|
|
|
|
|
|
|
- name: Uploading artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: osx-artifacts
|
|
|
|
path: '*.7z'
|