You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/.github/workflows/build.yml

38 lines
1.1 KiB
YAML

name: build
on: [push, pull_request]
jobs:
macos_build:
runs-on: macos-11
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
# Compared to the emulator, adds p7zip.
run: >
brew install -q nasm ragel binutils coreutils libtool autoconf automake cmake makedepend
sdl2 lua@5.1 luarocks gettext pkg-config wget gnu-getopt grep bison
ccache p7zip
- 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}";
./kodev release macos
- name: Uploading artifacts
uses: actions/upload-artifact@v2
with:
name: koreader-macos
path: '*.7z'