Skip to content

Commit 3dc6494

Browse files
authored
Merge pull request #259 from mattip/disambiguate
disambiguate bewteen a NIGHTLY build and a publish build
2 parents 894eacc + 4b7c113 commit 3dc6494

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/posix.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
schedule:
1212
- cron: '0 0 * * 0'
1313
workflow_call:
14+
inputs:
15+
publish:
16+
type: boolean
17+
default: false
18+
required: false
1419

1520

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

5560
env:
56-
NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
61+
NIGHTLY: ${{ inputs.publish == false && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
5762
MB_ML_LIBC: ${{ matrix.MB_ML_LIBC }}
5863
MB_ML_VER: ${{ matrix.MB_ML_VER }}
5964
INTERFACE64: ${{ matrix.INTERFACE64 }}

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
# Workflows to build wheels
2020
call-posix:
2121
uses: ./.github/workflows/posix.yml
22+
with:
23+
publish: true
2224

2325

2426
call-windows:
@@ -133,4 +135,4 @@ jobs:
133135
# uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
134136
# with:
135137
# print-hash: true
136-
# attestations: true
138+
# attestations: true

ci-before-build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ if [[ "$NIGHTLY" = "true" ]]; then
4545
pushd OpenBLAS
4646
git checkout develop
4747
export OPENBLAS_COMMIT=$(git describe --tags --abbrev=8)
48-
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30
49-
version=$(echo $OPENBLAS_COMMIT | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
48+
# Set the pyproject.toml version: convert v0.3.24-30-g138ed79f to 0.3.34.30.0
49+
version=$(echo $OPENBLAS_COMMIT | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g").0
5050
popd
5151
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
5252
else
5353
export OPENBLAS_COMMIT=$(cat openblas_commit.txt)
5454
fi
55+
echo "creating wheel from $OPENBLAS_COMMIT (NIGHTLY is $NIGHTLY)"
5556

5657
if [ "$(uname)" != "Darwin" ]; then
5758
./tools/install-static-clang.sh

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "scipy-openblas64"
1111
# v0.3.31-126-g55b16e59
12-
version = "0.3.31.126.2"
12+
version = "0.3.31.126.3"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

0 commit comments

Comments
 (0)