Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
b64cbe32
"...git@developer.sourcefind.cn:OpenDAS/torch-harmonics.git" did not exist on "4dadf551e5f1ce52517eee20e29a3eac1f4c3558"
Unverified
Commit
b64cbe32
authored
Jul 29, 2024
by
Titus
Committed by
GitHub
Jul 29, 2024
Browse files
add job to upload wheels to continuous pre-release (#1282)
parent
3a6911fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
1 deletion
+48
-1
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+48
-1
No files found.
.github/workflows/python-package.yml
View file @
b64cbe32
...
...
@@ -101,6 +101,7 @@ jobs:
name
:
shared_library_cuda_${{ matrix.os }}_${{ matrix.arch }}_${{ matrix.cuda_version }}
path
:
output/*
retention-days
:
7
build-wheels
:
needs
:
-
build-shared-libs
...
...
@@ -121,7 +122,7 @@ jobs:
runs-on
:
${{ matrix.os }}
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Download build artifact
-
name
:
Download build artifact
s
uses
:
actions/download-artifact@v4
with
:
merge-multiple
:
true
...
...
@@ -152,6 +153,52 @@ jobs:
path
:
dist/bitsandbytes-*.whl
retention-days
:
7
upload-pre-release-wheels
:
name
:
Create release and upload artifacts
runs-on
:
ubuntu-latest
needs
:
-
build-wheels
steps
:
-
name
:
Download artifacts to tmp directory
uses
:
actions/download-artifact@v4
with
:
path
:
tmp/
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
:
Create release and upload artifacts
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTINUOUS_RELEASE_TYPE
:
prerelease
GITHUB_CONTINUOUS_RELEASE_TAG
:
continuous-release_main
run
:
|
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage --appimage-extract-and-run wheels/*.whl
audit-wheels
:
needs
:
build-wheels
runs-on
:
ubuntu-latest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment