Skip to content

Commit 0bab07c

Browse files
authored
Update release action to remove CI Build Wheel (#728)
Removes the use of CI Build Wheel now that SmartSim is a pure python package. [ committed by @MattToast ] [ reviewed by @ashao ]
1 parent 10bdeac commit 0bab07c

File tree

2 files changed

+28
-71
lines changed

2 files changed

+28
-71
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -32,108 +32,61 @@ on:
3232
release:
3333
types: [published]
3434

35-
36-
env:
37-
HOMEBREW_NO_ANALYTICS: "ON" # Make Homebrew installation a little quicker
38-
HOMEBREW_NO_AUTO_UPDATE: "ON"
39-
HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK: "ON"
40-
HOMEBREW_NO_GITHUB_API: "ON"
41-
HOMEBREW_NO_INSTALL_CLEANUP: "ON"
42-
CIBW_SKIP: "pp* *i686*" # skip building for PyPy
43-
CIBW_ARCHS_MACOS: x86_64
44-
CIBW_ARCHS_LINUX: x86_64 # ppc64le # uncomment to enable powerPC build
45-
CIBW_ENVIRONMENT_MACOS: PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH"
46-
MACOSX_DEPLOYMENT_TARGET: "10.09"
47-
48-
4935
jobs:
50-
build_wheels:
51-
name: Build wheels on ${{ matrix.os }}
52-
runs-on: ${{ matrix.os }}
53-
strategy:
54-
fail-fast: false
55-
matrix:
56-
os: [ubuntu-22.04, macos-12]
57-
36+
build_dists:
37+
name: Build Distributions
38+
runs-on: ubuntu-22.04
5839
steps:
5940
- uses: actions/checkout@v4
6041
- uses: actions/setup-python@v5
42+
with:
43+
python-version: '3.9'
6144

62-
- name: Install cibuildwheel
63-
run: python -m pip install cibuildwheel>=2.12.3
45+
- name: Install build
46+
run: python -m pip install 'build>=1.2.2,<2'
6447

6548
- name: Install build-essentials
66-
if: contains(matrix.os, 'ubuntu')
6749
run: |
6850
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
6951
sudo apt-get update
70-
sudo apt-get install -y build-essential
71-
sudo apt-get install -y wget
72-
73-
- name: Install GNU make for MacOS
74-
if: contains(matrix.os, 'macos')
75-
run: brew install make || true
76-
77-
- name: list target wheels
78-
run: |
79-
python -m cibuildwheel . --print-build-identifiers
80-
81-
- name: Build wheels
82-
run: python -m cibuildwheel --output-dir wheelhouse
83-
env:
84-
CIBW_ENVIRONMENT_MACOS: PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH"
85-
MACOSX_DEPLOYMENT_TARGET: "10.09"
86-
87-
- uses: actions/upload-artifact@v3
88-
with:
89-
path: ./wheelhouse/*.whl
90-
91-
92-
build_sdist:
93-
name: Build source distribution
94-
runs-on: ubuntu-latest
95-
steps:
96-
- uses: actions/checkout@v4
52+
sudo apt-get install -y build-essential wget
9753
98-
- uses: actions/setup-python@v5
99-
name: Install Python
100-
with:
101-
python-version: '3.9'
102-
103-
- name: Build sdist
104-
run: |
105-
python -m pip install cmake>=3.13
106-
python setup.py sdist
54+
- name: Build Distributions
55+
run: python -m build .
10756

10857
- uses: actions/upload-artifact@v3
10958
with:
110-
path: dist/*.tar.gz
59+
name: distributables
60+
path: ./dist/*
11161

11262

11363
upload_pypi:
114-
needs: [build_wheels, build_sdist]
115-
runs-on: ubuntu-latest
64+
needs: [build_dists]
65+
runs-on: ubuntu-22.04
11666
steps:
11767
- uses: actions/download-artifact@v3
11868
with:
119-
name: artifact
69+
name: distributables
12070
path: dist
12171

12272
- uses: pypa/gh-action-pypi-publish@release/v1
12373
with:
12474
user: __token__
12575
password: ${{ secrets.PYPI }}
126-
#repository_url: https://test.pypi.org/legacy/
127-
76+
# repository-url: https://test.pypi.org/legacy/
12877

12978
createPullRequest:
130-
runs-on: ubuntu-latest
79+
needs: [upload_pypi]
80+
runs-on: ubuntu-22.04
13181
steps:
13282
- name: Checkout code
13383
uses: actions/checkout@v4
13484

13585
- name: Create pull request
13686
run: |
137-
gh pr create -B develop -H master --title 'Merge master into develop' --body 'This PR brings develop up to date with master for release.'
87+
gh pr create -B develop \
88+
-H master \
89+
--title 'Merge master into develop' \
90+
--body 'This PR brings develop up to date with master for release.'
13891
env:
13992
GH_TOKEN: ${{ github.token }}

doc/changelog.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Jump to:
1111

1212
### 0.8.0
1313

14-
Released on 25 September, 2024
14+
Released on 27 September, 2024
1515

1616
Description
1717

@@ -57,8 +57,12 @@ Detailed Notes
5757
- Versions for each of these packages are no longer specified in an
5858
internal class. Instead a default set of JSON files specifies the
5959
sources and versions. Users can specify their own custom specifications
60-
at smart build time
60+
at smart build time.
6161
([SmartSim-PR669](https://github.com/CrayLabs/SmartSim/pull/669))
62+
- Because all build configuration has been moved to static files and all
63+
backends are compiled during `smart build`, SmartSim can now be shipped as a
64+
pure python wheel.
65+
([SmartSim-PR728](https://github.com/CrayLabs/SmartSim/pull/728))
6266
- Two new Dockerfiles are now provided (one each for 11.8 and 12.1) that
6367
can be used to build a container to run the tutorials. No HPC support
6468
should be expected at this time

0 commit comments

Comments
 (0)