forked from bitsandbytes-foundation/bitsandbytes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
continuous release: revert wheel renaming due to install err
- Loading branch information
1 parent
3227cdd
commit 0a2b539
Showing
1 changed file
with
5 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,40 +206,18 @@ jobs: | |
needs: | ||
- build-wheels | ||
steps: | ||
- name: Download artifacts to tmp directory | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: tmp/ | ||
path: artifacts/ | ||
pattern: "bdist_wheel_*" | ||
merge-multiple: true | ||
- name: Inspect tmp directory after downloading artifacts | ||
run: ls -alFR tmp/ | ||
- name: Move and rename wheel files | ||
run: | | ||
mkdir -p wheels/ | ||
find tmp/ -type f -name '*.whl' -print0 | while IFS= read -r -d '' wheel; do | ||
wheel_filename=$(basename "$wheel") | ||
if [[ $wheel_filename == *linux*x86_64* ]]; then | ||
mv "$wheel" wheels/bnb-linux-x86_64.whl | ||
elif [[ $wheel_filename == *linux*aarch64* ]]; then | ||
mv "$wheel" wheels/bnb-linux-aarch64.whl | ||
elif [[ $wheel_filename == *macosx*x86_64* ]]; then | ||
mv "$wheel" wheels/bnb-macos-x86_64.whl | ||
elif [[ $wheel_filename == *macosx*arm64* ]]; then | ||
mv "$wheel" wheels/bnb-macos-arm64.whl | ||
elif [[ $wheel_filename == *win*amd64* ]]; then | ||
mv "$wheel" wheels/bnb-windows-x86_64.whl | ||
else | ||
echo "Unknown wheel format: $wheel_filename" | ||
exit 1 | ||
fi | ||
done | ||
- name: Inspect wheels directory after renaming files | ||
run: ls -alFR wheels/ | ||
- name: Inspect artifacts directory after downloading | ||
run: ls -alFR artifacts/ | ||
- name: Create release and upload artifacts | ||
uses: softprops/[email protected] | ||
with: | ||
files: wheels/*.whl | ||
files: artifacts/**/*.whl | ||
prerelease: true | ||
name: Multi-Backend Preview | ||
tag_name: continuous-release-preview | ||
|