Skip to content

Commit 5bd7610

Browse files
committed
fix: add Workaround for the nodejs20.x runtime
1 parent db21215 commit 5bd7610

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
yum update -y
2121
yum groupinstall "Development Tools" -y
22-
yum install -y tar wget lzip
22+
yum install -y tar wget lzip dnf
2323
2424
- name: Build MuPDF
2525
# https://mupdf.readthedocs.io/en/latest/quick-start-guide.html
@@ -32,11 +32,18 @@ jobs:
3232
- name: Create the layer
3333
run: |
3434
mkdir -p layer/bin
35-
cp /usr/local/bin/* layer/bin/
35+
cp /usr/local/bin/mutool layer/bin/
36+
cp /usr/local/bin/muraster layer/bin/
3637
cd layer
3738
zip -r9 ../mutool-layer.zip .
3839
cd ..
3940
41+
- name: Workaround for the nodejs20.x runtime
42+
run: |
43+
sudo dnf -y install nodejs20
44+
mv /opt/actions-runner/externals/node20/bin/node /opt/actions-runner/externals/node20/bin/node-bak
45+
ln -s /usr/bin/node-20 /opt/actions-runner/externals/node20/bin/node
46+
4047
- name: Upload the layer to the github artifact
4148
uses: actions/upload-artifact@v4
4249
with:

0 commit comments

Comments
 (0)