Skip to content

Commit

Permalink
fix: add Workaround for the nodejs20.x runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed Oct 25, 2024
1 parent db21215 commit 5bd7610
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
yum update -y
yum groupinstall "Development Tools" -y
yum install -y tar wget lzip
yum install -y tar wget lzip dnf
- name: Build MuPDF
# https://mupdf.readthedocs.io/en/latest/quick-start-guide.html
Expand All @@ -32,11 +32,18 @@ jobs:
- name: Create the layer
run: |
mkdir -p layer/bin
cp /usr/local/bin/* layer/bin/
cp /usr/local/bin/mutool layer/bin/
cp /usr/local/bin/muraster layer/bin/
cd layer
zip -r9 ../mutool-layer.zip .
cd ..
- name: Workaround for the nodejs20.x runtime
run: |
sudo dnf -y install nodejs20
mv /opt/actions-runner/externals/node20/bin/node /opt/actions-runner/externals/node20/bin/node-bak
ln -s /usr/bin/node-20 /opt/actions-runner/externals/node20/bin/node
- name: Upload the layer to the github artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5bd7610

Please sign in to comment.