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

Support Apple Silicon locally, and test there's no regression #58

Merged
merged 6 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
branches:
- master
pull_request:

jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker build .
test-usage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
input_path: README.md
output_dir: generated
build_html: false
- uses: actions/upload-artifact@v4
with:
name: readme
path: generated
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18
FROM --platform=linux/amd64 node:18

RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
Expand All @@ -24,4 +24,4 @@ RUN fc-cache -fv && \
chmod 777 /pdf && \
ln -s /github_interface.js /usr/local/bin/markdown-to-pdf

CMD [ "markdown-to-pdf" ]
CMD [ "markdown-to-pdf" ]