Skip to content

Commit

Permalink
Clean up GitHub Actions LilyPond installation (#1633)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbaca authored Jan 24, 2025
1 parent ccbf722 commit 6796c66
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix: { python-version: ["3.12", "3.13"] }
matrix:
python-version: ["3.12", "3.13"]

steps:
- name: Check out repository
Expand Down Expand Up @@ -40,8 +40,8 @@ jobs:
run: |
export LILYPOND_VERSION=2.25.22
echo "LILYPOND_VERSION=${LILYPOND_VERSION}" >> $GITHUB_ENV
echo "PATH=/tmp/lilypond-${LILYPOND_VERSION}/bin:/home/runner/bin:$PATH" \
>> $GITHUB_ENV
string="PATH=/tmp/lilypond-${LILYPOND_VERSION}/bin:/home/runner/bin:$PATH"
echo $string >> $GITHUB_ENV
echo "PYTHONUNBUFFERED=TRUE" >> $GITHUB_ENV
- name: Log environment variables
Expand All @@ -58,17 +58,12 @@ jobs:
base_url="https://gitlab.com/lilypond/lilypond/-/releases"
lilypond_url="${base_url}/v${LILYPOND_VERSION}/downloads/${lilypond_archive}"
echo "Downloading LilyPond from: ${lilypond_url}"
cd /tmp || { echo "Failed to change directory to /tmp"; }
wget -q --tries=3 --timeout=30 ${lilypond_url} || \
{ echo "Download failed after 3 attempts"; }
if [ ! -f "${lilypond_archive}" ]; then
echo "File download failed!" >&2
fi
cd /tmp
wget -q --tries=3 --timeout=30 ${lilypond_url}
test -f "${lilypond_archive}"
checksum="3e837e811aaa72323863925f0a4b5bd1aff1ed9b997e6c70dbe5c008e47872e7"
echo "${checksum} ${lilypond_archive}" > checksum.txt
if ! sha256sum -c checksum.txt --status; then
echo "Checksum verification failed!" >&2
fi
sha256sum -c checksum.txt --status
rm checksum.txt
echo "Checksum verified successfully."
tar -xf "${lilypond_archive}"
Expand All @@ -77,7 +72,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ci/requirements.txt
python -m pip install -r ci/requirements.txt --no-cache-dir
- name: Log dependencies
run: |
Expand Down

0 comments on commit 6796c66

Please sign in to comment.