Skip to content

Commit

Permalink
Check main.yml LilyPond SHA (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbaca authored Jan 21, 2025
1 parent b978676 commit 43f73a2
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14-dev"]
python-version: ["3.12", "3.13"]

steps:
- uses: actions/checkout@v2
Expand All @@ -34,13 +34,24 @@ jobs:
- name: Install LilyPond
run: |
lilypond_version=2.25.22
lilypond_archive=lilypond-${lilypond_version}-linux-x86_64.tar.gz
lilypond_url=https://gitlab.com/lilypond/lilypond/-/releases/
lilypond_url=${lilypond_url}/v${lilypond_version}/downloads/${lilypond_archive}
echo ${lilypond_url}
cd /tmp
lilypond_archive="lilypond-${lilypond_version}-linux-x86_64.tar.gz"
lilypond_url="https://gitlab.com/lilypond/lilypond/-/releases/v${lilypond_version}/downloads/${lilypond_archive}"
echo "Downloading LilyPond from: ${lilypond_url}"
cd /tmp || { echo "Failed to change directory to /tmp"; exit 1; }
wget -q ${lilypond_url}
tar -xf ${lilypond_archive}
if [ ! -f "${lilypond_archive}" ]; then
echo "File download failed!" >&2
exit 1
fi
checksum="3e837e811aaa72323863925f0a4b5bd1aff1ed9b997e6c70dbe5c008e47872e7"
echo "${checksum} ${lilypond_archive}" > checksum.txt
if ! sha256sum -c checksum.txt --status; then
echo "Checksum verification failed!" >&2
exit 1
fi
rm checksum.txt
echo "Checksum verified successfully."
tar -xf "${lilypond_archive}"
- name: Install Abjad
run: |
export PATH=/tmp/lilypond-2.25.22/bin:/home/runner/bin:$PATH
Expand Down

0 comments on commit 43f73a2

Please sign in to comment.