From 7ea2653a9d24d4a819a1fdca9b7b0ac8d698bb7c Mon Sep 17 00:00:00 2001 From: jackeyzzz12138 <73005648+jackeyzzz12138@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86workflow=E5=92=8Cima?= =?UTF-8?q?ge=E4=BB=A5=E9=80=82=E9=85=8Darm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-with-latex-arm.yml | 3 +++ docs/GithubAction+NoLocal+latex+arm | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-with-latex-arm.yml b/.github/workflows/build-with-latex-arm.yml index 2d6d1c4717..cd48a62af0 100644 --- a/.github/workflows/build-with-latex-arm.yml +++ b/.github/workflows/build-with-latex-arm.yml @@ -21,6 +21,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Log in to the Container registry uses: docker/login-action@v2 with: diff --git a/docs/GithubAction+NoLocal+latex+arm b/docs/GithubAction+NoLocal+latex+arm index bd8b8993e7..baaefd30c7 100644 --- a/docs/GithubAction+NoLocal+latex+arm +++ b/docs/GithubAction+NoLocal+latex+arm @@ -5,7 +5,7 @@ # FROM fuqingxu/python311_texlive_ctex:latest # 制作arm64的镜像 -FROM zupher/alpine_py311_latexfull_arm:1.0 +FROM zupher/ubuntu_arm_py310_latex:latest # # 安装python3.11 # RUN apk update # RUN apk add python3 @@ -23,17 +23,17 @@ ENV PATH "$PATH:/usr/bin" # 指定路径 WORKDIR /gpt -RUN pip3 install openai numpy arxiv rich --break-system-packages -RUN pip3 install colorama Markdown pygments pymupdf --break-system-packages -RUN pip3 install python-docx pdfminer --break-system-packages -RUN pip3 install nougat-ocr --break-system-packages +RUN pip3 install openai numpy arxiv rich +RUN pip3 install colorama Markdown pygments pymupdf +RUN pip3 install python-docx pdfminer +RUN pip3 install nougat-ocr # 装载项目文件 COPY . . # 安装依赖 -RUN pip3 install -r requirements.txt --break-system-packages +RUN pip3 install -r requirements.txt # 可选步骤,用于预热模块 RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'