mccarthy-m-g / musicians-compendium

The Musician's Compendium: a book
https://musicianscompendium.netlify.com
Other
2 stars 0 forks source link

Install LilyPond in Github Actions build #1

Open mccarthy-m-g opened 4 years ago

mccarthy-m-g commented 4 years ago

LilyPond needs to be installed in order to use tabr's engraving functions. Otherwise the build won't work.

It should be installed during the Github Actions build in the .github/workflows/build-book.yaml file. Something like this should work:

- name: Install LilyPond
        run: |
          brew cask install LilyPond

But it does not work because lilypond is 32-bit, which is now unsupported in OSX Catalina.

Run brew cask install lilypond
==> Downloading http://lilypond.org/downloads/binaries/darwin-x86/lilypond-2.20.0-1.darwin-x86.tar.bz2
##[error]Error: This cask does not run on macOS versions newer than Mojave.
==> Verifying SHA-256 checksum for Cask 'lilypond'.
##[error]Process completed with exit code 1.

Solutions:

  1. wait for 64-bit lilypond (this seems unlikely to happen soon)
  2. do all the tabr and lilypond engraving locally, and embed pictures or lilypond's HTML output instead of using the output of R code chunks
  3. try this https://kylebaldw.in/posts/2019/running-lilypond-on-catalina/ or https://gitlab.com/marnen/lilypond-mac-builder
  4. Use a different OS for the GitHub Actions build (not sure if this will cause problems since I'm using OSX locally)
  5. try the macports version port install lilypond-devel
marnen commented 4 years ago

You wanted 64-bit LilyPond? Here you go! https://bintray.com/marnen/lilypond-darwin-64