-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (40 loc) · 1.03 KB
/
lilypond.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
MAKEFLAGS: --jobs=4
LILYPOND_VERSION: 2.24.1
VARIANTS_PDF: eogsized
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile
build-args: LILYPOND_VERSION=${{ env.LILYPOND_VERSION }}
tags: my-lilydock:${{ env.LILYPOND_VERSION }}
- name: Build PDFs
uses: addnab/docker-run-action@v3
with:
options: |
--volume ${{ github.workspace }}:${{ github.workspace }}
--workdir ${{ github.workspace }}
--env MAKEFLAGS
--env VARIANTS_PDF
image: my-lilydock:${{ env.LILYPOND_VERSION }}
run: make --environment-overrides pdf
- uses: actions/upload-artifact@v3
with:
name: pdfs
path: PDF/*/*.pdf