2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
koreader/.github/workflows/build.yml
Martín Fernández 30e499d4a9
[CI] Downgrade macOS Github Action to macOS 10.15 (#9279)
Both BigSur and Monterey produce a broken `crengine.dylib`.

Only github actions are affected as local builds seem to work just fine: https://github.com/koreader/koreader/issues/8686#issuecomment-1166656492
2022-07-04 12:17:33 +02:00

47 lines
1.4 KiB
YAML

name: build
on: [push, pull_request]
permissions:
contents: read
jobs:
macos_build:
# 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
steps:
- name: XCode version
run: xcode-select -p
- name: Check out Git repository
uses: actions/checkout@v3
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=10.15;
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@v3
with:
name: koreader-macos
path: '*.7z'