Skip to content

Commit 6a108f9

Browse files
feat: 更新构建
1 parent 4737104 commit 6a108f9

1 file changed

Lines changed: 9 additions & 20 deletions

File tree

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

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,35 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3333
if: env.build == '1'
34-
- uses: docker/setup-qemu-action@v3
34+
- uses: docker/setup-qemu-action@v4
3535
if: env.build == '1'
36-
- uses: docker/setup-buildx-action@v3
36+
- uses: docker/setup-buildx-action@v4
3737
if: env.build == '1'
3838

3939
- name: Generate files
4040
if: env.build == '1'
4141
run: |
4242
mkdir -p docker/manylinux_2_38
43-
wget -qO docker/manylinux_2_38/Dockerfile_loongarch64 https://github.com/opencv/opencv-python/raw/refs/tags/${version}/docker/manylinux2014/Dockerfile_x86_64
44-
patch -p1 < loong64.patch
43+
wget -qO docker/manylinux_2_38/Dockerfile_loongarch64 https://github.com/opencv/opencv-python/raw/refs/tags/${version}/docker/manylinux_2_28/Dockerfile_x86_64
44+
# patch -p1 < loong64.patch
4545
cd docker/manylinux_2_38
46-
sed -i "s@FROM quay.io/pypa/manylinux2014_x86_64@FROM ghcr.io/loong64/manylinux_2_38_loongarch64@g" Dockerfile_loongarch64
46+
sed -i "s@FROM quay.io/pypa/manylinux_2_28_x86_64@FROM ghcr.io/loong64/manylinux_2_38_loongarch64@g" Dockerfile_loongarch64
47+
sed -i "s@epel-release@anolis-epao-release@g" Dockerfile_loongarch64
4748
image_tag=$(cat Dockerfile_loongarch64 | grep "Version:" | sed 's/# Version: //')
4849
echo "image_tag=${image_tag}" >> $GITHUB_ENV
4950
5051
- name: Login to GitHub Container Registry
51-
uses: docker/login-action@v3
52+
uses: docker/login-action@v4
5253
with:
5354
registry: ghcr.io
5455
username: ${{ github.repository_owner }}
5556
password: ${{ secrets.GITHUB_TOKEN }}
5657

5758
- name: Build and push image
5859
if: env.build == '1'
59-
uses: docker/build-push-action@v6
60+
uses: docker/build-push-action@v7
6061
with:
6162
context: .
6263
file: docker/manylinux_2_38/Dockerfile_loongarch64
@@ -67,18 +68,6 @@ jobs:
6768
ghcr.io/${{ github.repository_owner }}/opencv-python-manylinux_2_38-loongarch64:latest
6869
cache-from: ghcr.io/${{ github.repository_owner }}/opencv-python-manylinux_2_38-loongarch64:latest
6970

70-
- name: Create tag
71-
if: env.build == '1'
72-
run: |
73-
git config --global user.name "github-actions[bot]"
74-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
75-
git add .
76-
git commit -m "Update to ${version}" || true
77-
git tag ${version} || true
78-
git push origin ${version} || true
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-
8271
- name: Release
8372
if: env.build == '1'
8473
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)