From aa0f86e356440fe2f482cdcc14b766b1915a8f79 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Tue, 12 Mar 2024 01:47:10 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=F0=9F=A4=94=20Github=20Action=20Artifa?= =?UTF-8?q?ct=20Name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f66c458..c0d96d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: ms_auth-py3-win_amd64.whl + name: ms_auth-py3-win_amd64 path: dist/ms_auth-*-win_amd64.whl build_macos: @@ -61,12 +61,12 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: ms_auth-py3-macosx_x86_64.whl + name: ms_auth-py3-macosx_x86_64 path: dist/ms_auth-*-macosx_x86_64.whl - uses: actions/upload-artifact@v3 with: - name: ms_auth-py3-macosx_arm64.whl + name: ms_auth-py3-macosx_arm64 path: dist/ms_auth-*-macosx_arm64.whl build_linux: @@ -98,17 +98,17 @@ jobs: - name: Build run: | CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -trimpath -buildmode=c-shared -o ms_auth/ms_auth.so ./ms_auth/ && python3 setup.py bdist_wheel -p linux_x86_64 && \ - CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -trimpath -buildmode=c-shared -o ms_auth/ms_auth.so ./ms_auth/ && python3 setup.py bdist_wheel -p linux_aarch64 + CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -trimpath -buildmode=c-shared -o ms_auth/ms_auth.so ./ms_auth/ && python3 setup.py bdist_wheel -p manylinux_aarch64 - uses: actions/upload-artifact@v3 with: - name: ms_auth-py3-linux_x86_64.whl + name: ms_auth-py3-linux_x86_64 path: dist/ms_auth-*-linux_x86_64.whl - uses: actions/upload-artifact@v3 with: - name: ms_auth-py3-linux_aarch64.whl - path: dist/ms_auth-*-linux_aarch64.whl + name: ms_auth-py3-manylinux_aarch64 + path: dist/ms_auth-*-manylinux_aarch64.whl release: name: Release @@ -132,31 +132,31 @@ jobs: - name: Download Windows amd64 artifact uses: actions/download-artifact@v3 with: - name: ms_auth-py3-win_amd64.whl + name: ms_auth-py3-win_amd64 path: dist - name: Download macOS amd64 artifact uses: actions/download-artifact@v3 with: - name: ms_auth-py3-macosx_x86_64.whl + name: ms_auth-py3-macosx_x86_64 path: dist - name: Download macOS arm64 artifact uses: actions/download-artifact@v3 with: - name: ms_auth-py3-macosx_arm64.whl + name: ms_auth-py3-macosx_arm64 path: dist - name: Download Linux amd64 artifact uses: actions/download-artifact@v3 with: - name: ms_auth-py3-linux_x86_64.whl + name: ms_auth-py3-linux_x86_64 path: dist - name: Download Linux arm64 artifact uses: actions/download-artifact@v3 with: - name: ms_auth-py3-linux_aarch64.whl + name: ms_auth-py3-manylinux_aarch64 path: dist - name: Publish to PyPI