Skip to content

Commit

Permalink
Add manual link to lilypond executable
Browse files Browse the repository at this point in the history
  • Loading branch information
tskarhed committed May 13, 2023
1 parent e1ec05a commit 8178ff5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");

module.exports = function(eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);

eleventyConfig.addPlugin(EleventyHtmlBasePlugin);

// Copy any .svg or midi file to `_site`, via Glob pattern
// Keeps the same directory structure
eleventyConfig.addPassthroughCopy("songs/**/*.svg");
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/build-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,35 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# container:
# image: codello/lilypond:2.24.1
shell: bash
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v2.5.2

# Runs a single command using the runners shell
- name: Install Lilypond

run: |
curl https://lilypond.org/downloads/binaries/linux-x86/lilypond-2.23.6-1.linux-x86.sh | sh
echo 'alias lilypond="/home/runner/bin/lilypond"' > /tmp/alias
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2.5.2
with:
node-version: 18.12.0

# Runs a set of commands using the runners shell
- name: Install node dependencies
run: npm ci
- name: Install Lilypond
run: |
wget https://gitlab.com/lilypond/lilypond/-/releases/v2.24.1/downloads/lilypond-2.24.1-linux-x86_64.tar.gz
tar -xzf lilypond-2.24.1-linux-x86_64.tar.gz
- name: Bulild lilypond artifacts
- name: Build lilypond artifacts
run: |
source /tmp/alias
npm run build:songs
cd songs
for dir in */; do
(cd $dir && ../../lilypond-2.24.1/bin/lilypond --svg main.ly)
done
- name: Generate .md files for eleventy
run: npm run build:pre-11ty
- name: Build eleventy
run: npm run build:11ty
run: npm run build:11ty --pathPrefix=scores-ly
1 change: 1 addition & 0 deletions build-lilypond.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
cd songs

for dir in */; do
Expand Down

0 comments on commit 8178ff5

Please sign in to comment.