Skip to content

Commit 9476230

Browse files
feat: 更新构建
1 parent 451dcfe commit 9476230

9 files changed

Lines changed: 290 additions & 284 deletions

File tree

.ci/docker/common/install_ffmpeg.sh

Lines changed: 0 additions & 72 deletions
This file was deleted.

.ci/docker/common/install_ninja.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

.ci/docker/common/install_openblas.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

.ci/docker/manywheel/Dockerfile_2_38_loongarch64

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
FROM ghcr.io/loong64/manylinux_2_38_loongarch64 AS base
2+
3+
# Language variabes
4+
ENV LC_ALL=en_US.UTF-8
5+
ENV LANG=en_US.UTF-8
6+
ENV LANGUAGE=en_US.UTF-8
7+
8+
# Installed needed OS packages. This is to support all
9+
# the binary builds (torch, vision, audio, text, data)
10+
RUN yum install -y \
11+
autoconf \
12+
automake \
13+
bison \
14+
bzip2 \
15+
ccache \
16+
curl \
17+
diffutils \
18+
file \
19+
git \
20+
less \
21+
libffi-devel \
22+
libgomp \
23+
make \
24+
openssl-devel \
25+
patch \
26+
perl \
27+
unzip \
28+
util-linux \
29+
wget \
30+
which \
31+
xz \
32+
yasm \
33+
zstd \
34+
sudo \
35+
blas-devel \
36+
openblas-devel \
37+
lapack-devel \
38+
atlas-devel \
39+
libjpeg-devel \
40+
libxslt-devel \
41+
libxml2-devel \
42+
openssl-devel \
43+
valgrind \
44+
ninja-build \
45+
&& \
46+
yum clean all
47+
48+
# Clang
49+
# ARG RUNNER_ARCH
50+
# RUN cd /opt \
51+
# && curl -LO https://github.com/loong64/static-clang-build/raw/refs/heads/main/manylinux-install-static-clang.sh \
52+
# && bash ./manylinux-install-static-clang.sh \
53+
# && rm -f ./manylinux-install-static-clang.sh
54+
55+
# git236+ would refuse to run git commands in repos owned by other users
56+
# Which causes version check to fail, as pytorch repo is bind-mounted into the image
57+
# Override this behaviour by treating every folder as safe
58+
# For more details see https://github.com/pytorch/pytorch/issues/78659#issuecomment-1144107327
59+
RUN git config --global --add safe.directory "*"
60+
61+
FROM base AS final
62+
ADD repair_manylinux_2_38.sh /usr/local/bin/repair_manylinux_2_38.sh

.github/workflows/build-manywheel-images.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,31 @@ jobs:
3232
name: ${{ matrix.name }}:${{ matrix.tag }}
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636

3737
- name: Setup QEMU
38-
uses: docker/setup-qemu-action@v3
38+
uses: docker/setup-qemu-action@v4
3939

4040
- name: Set up Docker Buildx
41-
uses: docker/setup-buildx-action@v3
41+
uses: docker/setup-buildx-action@v4
4242

4343
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v3
44+
uses: docker/login-action@v4
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.repository_owner }}
4848
password: ${{ secrets.GITHUB_TOKEN }}
4949

5050
- name: Build docker image
51-
uses: docker/build-push-action@v6
51+
uses: docker/build-push-action@v7
5252
with:
5353
context: .ci/docker
54-
file: .ci/docker/manywheel/Dockerfile_2_38_loongarch64
54+
file: .ci/docker/manywheel/Dockerfile_loongarch64
5555
platforms: linux/loong64
5656
push: true
5757
target: final
58+
build-args: |
59+
RUNNER_ARCH
5860
tags: |
5961
ghcr.io/loong64/manylinuxloongarch64-builder:${{ matrix.tag }}
6062
cache-from: type=registry,ref=ghcr.io/loong64/manylinuxloongarch64-builder:buildcache

0 commit comments

Comments
 (0)