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
5eb35ec9
Commit
5eb35ec9
authored
May 15, 2025
by
Titus von Koeller
Browse files
continuous build: refine + make sure release is always fresh
parent
98eed131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+40
-1
No files found.
.github/workflows/python-package.yml
View file @
5eb35ec9
...
@@ -171,8 +171,10 @@ jobs:
...
@@ -171,8 +171,10 @@ jobs:
path
:
tmp/
path
:
tmp/
pattern
:
"
bdist_wheel_*"
pattern
:
"
bdist_wheel_*"
merge-multiple
:
true
merge-multiple
:
true
-
name
:
Inspect tmp directory after downloading artifacts
-
name
:
Inspect tmp directory after downloading artifacts
run
:
ls -alFR tmp/
run
:
ls -alFR tmp/
-
name
:
Move and rename wheel files with pattern replacement
-
name
:
Move and rename wheel files with pattern replacement
run
:
|
run
:
|
mkdir -p wheels/
mkdir -p wheels/
...
@@ -197,12 +199,49 @@ jobs:
...
@@ -197,12 +199,49 @@ jobs:
-
name
:
Inspect wheels directory after renaming files
-
name
:
Inspect wheels directory after renaming files
run
:
ls -alFR wheels/
run
:
ls -alFR wheels/
-
name
:
Create release and upload artifacts
-
name
:
Delete old pre-release (if exists)
run
:
|
gh release delete continuous-release_main --cleanup-tag -y || true
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Generate pip install commands for release body
run
:
|
cat > body.md << 'ENDOFMARKDOWN'
## Latest `main` Wheel Pre-release
This pre-release contains the latest development wheels for all supported platforms, rebuilt automatically on every commit to the `main` branch.
**How to install:**
Pick the correct command for your platform and run it in your terminal:
ENDOFMARKDOWN
for whl in wheels/*.whl; do
fname=$(basename "$whl")
url="https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/$fname"
echo "\`\`\`sh" >> body.md
echo "pip install $url" >> body.md
echo "\`\`\`" >> body.md
echo "" >> body.md
done
cat >> body.md << 'ENDOFMARKDOWN'
> **Note:**
> These wheels are updated automatically with every commit to `main` and become available as soon as the [python-package.yml](.github/workflows/python-package.yml) workflow finishes.
ENDOFMARKDOWN
# for debugging:
cat body.md
-
name
:
Create new pre-release and upload artifacts
uses
:
softprops/action-gh-release@v2.2.1
uses
:
softprops/action-gh-release@v2.2.1
with
:
with
:
files
:
wheels/*.whl
files
:
wheels/*.whl
prerelease
:
true
prerelease
:
true
name
:
Latest `main` wheel
name
:
Latest `main` wheel
body_path
:
body.md
tag_name
:
continuous-release_main
tag_name
:
continuous-release_main
make_latest
:
false
make_latest
:
false
draft
:
false
draft
:
false
...
...
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