Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
schedule:
- cron: '0 0 * * 0'
workflow_call:
inputs:
publish:
type: boolean
default: false
required: false


jobs:
Expand Down Expand Up @@ -53,7 +58,7 @@ jobs:
- { os: ubuntu-24.04-arm, PLAT: riscv64, INTERFACE64: '1', MB_ML_VER: '_2_39', MB_ML_LIBC: manylinux}

env:
NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
NIGHTLY: ${{ inputs.publish == false && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
MB_ML_LIBC: ${{ matrix.MB_ML_LIBC }}
MB_ML_VER: ${{ matrix.MB_ML_VER }}
INTERFACE64: ${{ matrix.INTERFACE64 }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
# Workflows to build wheels
call-posix:
uses: ./.github/workflows/posix.yml
with:
publish: true


call-windows:
Expand Down Expand Up @@ -133,4 +135,4 @@ jobs:
# uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
# with:
# print-hash: true
# attestations: true
# attestations: true
5 changes: 3 additions & 2 deletions ci-before-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ if [[ "$NIGHTLY" = "true" ]]; then
pushd OpenBLAS
git checkout develop
export OPENBLAS_COMMIT=$(git describe --tags --abbrev=8)
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30
version=$(echo $OPENBLAS_COMMIT | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30.0
version=$(echo $OPENBLAS_COMMIT | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g").0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a build number.

popd
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
else
export OPENBLAS_COMMIT=$(cat openblas_commit.txt)
fi
echo "creating wheel from $OPENBLAS_COMMIT (NIGHTLY is $NIGHTLY)"

if [ "$(uname)" != "Darwin" ]; then
./tools/install-static-clang.sh
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "scipy-openblas64"
# v0.3.31-126-g55b16e59
version = "0.3.31.126.2"
version = "0.3.31.126.3"
requires-python = ">=3.7"
description = "Provides OpenBLAS for python packaging"
readme = "README.md"
Expand Down
Loading