Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework CI using mupub checks #43

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,47 @@ on:
pull_request:
types: [assigned, edited, opened, synchronize, reopened]

env:
lilypond_version: 2.24.3

jobs:
build-checks:
runs-on: ubuntu-latest
container: 'fedora:39'
container: 'alpine:3.20'

steps:
- uses: actions/checkout@v2

- id: install_deps
- id: install_pkg_deps
run: |
dnf -y update
dnf -y install autoconf automake bzip2 lilypond make xz
apk update
apk add autoconf automake bzip2 git lilypond make python3 py3-pip tar xz

- uses: actions/checkout@v2

- id: configure
- id: build_checks
run: |
autoreconf --install
./configure
# make dist && make

- id: make_dist
- id: install_mupub
run: |
git clone https://github.com/MutopiaProject/MutopiaProject /opt/MutopiaProject/MutopiaProject
git clone https://github.com/MutopiaProject/MutopiaWeb /opt/MutopiaProject/MutopiaWeb
git clone https://github.com/madrisan/mupub.git /opt/MutopiaProject/mupub
cd /opt/MutopiaProject/mupub
git checkout ci
pip3 install --break-system-packages -r requirements.txt
make dist
pip3 install --break-system-packages dist/mupub-1.0.8-py2.py3-none-any.whl
mupub init <<'END'
/opt/MutopiaProject/MutopiaWeb/datafiles
/opt/MutopiaProject/MutopiaProject
END
mkdir ~/.mupub/lycache
mupub --version
cat ~/.mupub/mu-config.cfg

- id: make
- id: mupub_check
run: |
make
cd /__w/open-scores/open-scores/src/johann-sebastian-bach/fuga/BWV948
mupub check --header-file header.ily JS-Bach-BWV948-Fuga-d-Moll.ly
Loading