diff --git a/.github/actions/Dockerfile b/.github/actions/Dockerfile deleted file mode 100644 index 522fcdc..0000000 --- a/.github/actions/Dockerfile +++ /dev/null @@ -1,73 +0,0 @@ -FROM python:slim as python -RUN pip3 install anshitsu -RUN python3 svg.py -RUN python3 grayscaling.py - -FROM ruby:slim as base -ENV VOLTA_HOME=/usr/local -RUN apt update && \ - apt install -y autoconf \ - bison \ - build-essential \ - libssl-dev \ - libyaml-dev \ - libreadline6-dev \ - zlib1g-dev \ - libncurses5-dev \ - libffi-dev \ - libgdbm6 \ - libgdbm-dev \ - libdb-dev \ - locales \ - git-core \ - zip \ - unzip \ - fontconfig \ - apt-utils \ - bash \ - curl \ - sudo \ - librsvg2-bin \ - libssl-dev \ - libreadline-dev \ - sudo \ - cron \ - libcairo2-dev \ - libffi-dev \ - zlib1g-dev \ - libatk-bridge2.0-0 \ - libgtk-3-0 \ - libasound2 \ - pandoc \ - mecab \ - mecab-ipadic-utf8 \ - libmecab-dev \ - libgbm-dev \ - file \ - xz-utils \ - poppler-data \ - graphviz \ - poppler-utils && \ - apt clean - -RUN curl https://get.volta.sh | bash &&\ - volta install node@lts pnpm@latest - -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" - -RUN pnpm install -g @vivliostyle/cli - -RUN git clone https://github.com/neologd/mecab-ipadic-neologd.git && \ - cd mecab-ipadic-neologd && \ - sudo bin/install-mecab-ipadic-neologd -y && \ - sudo echo dicdir = /usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd > /etc/mecabrc - -RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc && \ - gem update && \ - bundle install - -RUN pnpm install -RUN pnpm run style -ENTRYPOINT ["./entrypoint.sh"] - diff --git a/.github/actions/action.yml b/.github/actions/action.yml deleted file mode 100644 index feb61b5..0000000 --- a/.github/actions/action.yml +++ /dev/null @@ -1,5 +0,0 @@ -name: 'build-book' -description: 'Build Book by Vivliostyle' -runs: - using: 'docker' - image: 'Dockerfile' \ No newline at end of file diff --git a/.github/actions/entrypoint.sh b/.github/actions/entrypoint.sh deleted file mode 100755 index d12c837..0000000 --- a/.github/actions/entrypoint.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -l - -REVIEW_CONFIG_FILE=config-vivliostyle.yml REVIEW_VSCLI_USESANDBOX=true bundle exec rake vivliostyle \ No newline at end of file diff --git a/.github/workflows/jobs.yml b/.github/workflows/jobs.yml index 9a3a01a..df8f59a 100644 --- a/.github/workflows/jobs.yml +++ b/.github/workflows/jobs.yml @@ -236,7 +236,7 @@ jobs: vivliostyle-dockerfile: # needs: reviewdog-github-check name: Make PDF at Vivliostyle - runs-on: ubuntu-latest + runs-on: ghcr.io/huideyeren/vivliostyle-review-docker:5d69b10 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 @@ -248,9 +248,16 @@ jobs: # '%Y-%m-%d %H:%M'の部分を書き換えれば、任意の表示に変更できる。 - name: Show date and time run: echo ${{ steps.date.outputs.date }} # 2022-01-03 10:42 - - name: Build Book - uses: ./.github/actions/ - id: build-book + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Grayscaling images. + run: pip3 install anshitsu && pwd | python3 grayscaling.py >> .grayscaling.log + - name: Show .grayscaling.log + run: cat .grayscaling.log + - name: Build PDF. + run: REVIEW_CONFIG_FILE=config-vivliostyle.yml REVIEW_VSCLI_USESANDBOX=true bundle exec rake vivliostyle - name: Upload artifact. uses: actions/upload-artifact@v3 with: