Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
4f198988
Commit
4f198988
authored
Sep 30, 2024
by
Titus von Koeller
Browse files
tweak continuous release of `main`
parent
0500c31f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
24 deletions
+14
-24
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+14
-24
No files found.
.github/workflows/python-package.yml
View file @
4f198988
...
@@ -163,7 +163,7 @@ jobs:
...
@@ -163,7 +163,7 @@ jobs:
needs
:
needs
:
-
build-wheels
-
build-wheels
steps
:
steps
:
-
name
:
Download a
rtifacts to tmp directory
-
name
:
Download a
nd rename artifacts
uses
:
actions/download-artifact@v4
uses
:
actions/download-artifact@v4
with
:
with
:
path
:
tmp/
path
:
tmp/
...
@@ -171,37 +171,27 @@ jobs:
...
@@ -171,37 +171,27 @@ jobs:
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
-
name
:
Move and rename wheel files
with pattern replacement
run
:
|
run
:
|
mkdir -p wheels/
mkdir -p wheels/
find tmp/ -type f -name '*.whl' -print0 | while IFS= read -r -d '' wheel; do
find tmp/ -type f -name '*.whl' -print0 | while IFS= read -r -d '' wheel; do
wheel_filename=$(basename "$wheel")
wheel_filename=$(basename "$wheel")
if [[ $wheel_filename == *linux*x86_64* ]]; then
# Remove the gith hash, e.g. `+1234567`, for a stable download link on the multi-backend pre-release
mv "$wheel" wheels/bnb-linux-x86_64.whl
cleaned_filename=$(echo "$wheel_filename" | sed -E 's/\+[0-9a-f]{7}-/-/g')
elif [[ $wheel_filename == *linux*aarch64* ]]; then
mv "$wheel" "wheels/$cleaned_filename"
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
done
-
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
:
Create release and upload artifacts
env
:
uses
:
softprops/action-gh-release@v2.0.8
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
GITHUB_CONTINUOUS_RELEASE_TYPE
:
prerelease
files
:
wheels/*.whl
GITHUB_CONTINUOUS_RELEASE_TAG
:
continuous-release_main
prerelease
:
true
run
:
|
name
:
Multi-Backend Preview
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
tag_name
:
continuous-release_main
chmod +x pyuploadtool-x86_64.AppImage
make_latest
:
false
./pyuploadtool-x86_64.AppImage --appimage-extract-and-run wheels/*.whl
draft
:
false
target_commitish
:
${{ github.sha }}
audit-wheels
:
audit-wheels
:
needs
:
build-wheels
needs
:
build-wheels
...
...
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