2021-12-26 12:27:10 +00:00
|
|
|
name: build
|
2020-12-11 14:16:29 +00:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2022-06-14 17:31:42 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-11 14:16:29 +00:00
|
|
|
jobs:
|
2021-12-26 12:27:10 +00:00
|
|
|
macos_build:
|
2022-07-04 10:17:33 +00:00
|
|
|
|
|
|
|
# macos-11 and macos-12 are broken at this time being.
|
|
|
|
# https://github.com/koreader/koreader/issues/8686,
|
|
|
|
# https://github.com/koreader/koreader/issues/8686#issuecomment-1172950236
|
|
|
|
|
|
|
|
# Please don't update to newer macOS version unless you can test that the new
|
|
|
|
# action produces working binaries.
|
|
|
|
runs-on: macos-10.15
|
2020-12-11 14:16:29 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: XCode version
|
|
|
|
run: xcode-select -p
|
|
|
|
|
|
|
|
- name: Check out Git repository
|
2022-06-15 07:38:09 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-12-11 14:16:29 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Homebrew install dependencies
|
2021-12-26 12:27:10 +00:00
|
|
|
# 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
|
2020-12-11 14:16:29 +00:00
|
|
|
|
|
|
|
- name: Building in progress…
|
2021-12-26 12:27:10 +00:00
|
|
|
run: |
|
2022-07-04 10:17:33 +00:00
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.15;
|
2021-12-26 12:27:10 +00:00
|
|
|
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
|
2020-12-11 14:16:29 +00:00
|
|
|
|
|
|
|
- name: Uploading artifacts
|
2022-06-15 07:43:43 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-12-11 14:16:29 +00:00
|
|
|
with:
|
2021-12-26 12:27:10 +00:00
|
|
|
name: koreader-macos
|
2020-12-11 14:16:29 +00:00
|
|
|
path: '*.7z'
|