Skip to content

Commit

Permalink
[Fix] 🤔 Github Action Artifact Name
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Mar 11, 2024
1 parent 32e56ca commit aa0f86e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit aa0f86e

Please sign in to comment.