-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GA-167 | initial commit * attempt: remove `setup_ssh` * remove: `setup_sa` * update `pyproject` * new: `release` github action * ls dist (we're not actually releasing anything right now) * attempt: macos amd & arm * cleanup * fix: `libssl-dev` * simplify * attempt: use powershell * remove: `publish` * attempt: `universal2` * attempt: `maturin build` * remove: `release_package` * attempt: `rustup` * move: `rustup` * attempt: `x64` * attempt: macos-latest, macos-12 * attempt: go back to CFLAGS * attempt: macos-13 * remove: `.cargo` * remove: `benchmarks` & unused dockerfile * new: `twine upload` to test pypi * attempt: trigger `0.5.0` release to test pypi * attempt: trigger `0.5.1` release to test pypi using verbose to debug, and disabling python matrix * attempt: trigger `0.5.2` release to test pypi use maturin build, only upload whl files * attempt: trigger `0.5.3` release to test pypi using Dockerfile-build for `build-linux` * attempt: trigger `0.5.4` release to pypi * fix: python-version * cleanup
- Loading branch information
Showing
10 changed files
with
125 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: Release Phenolrs | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libssl-dev | ||
pip install build maturin twine | ||
- name: Build builder image | ||
run: docker build -t phenolrs-builder:latest -f Dockerfile-build . | ||
|
||
- name: Build the package | ||
run: docker run --rm -v $(pwd):/io phenolrs-builder:latest build --out dist --release --sdist --interpreter python3.10 python3.11 python3.12 | ||
|
||
- name: ls | ||
run: ls dist/* | ||
|
||
- name: Publish to Test PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }} | ||
run: twine upload --verbose --repository testpypi dist/*.whl | ||
|
||
- name: Publish to PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
run: twine upload --verbose --repository pypi dist/*.whl | ||
|
||
release-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: pip install build maturin twine | ||
|
||
- name: Build the package | ||
run: maturin build --out dist --release --sdist --interpreter python3.10 python3.11 python3.12 | ||
|
||
- name: ls | ||
run: ls dist/* | ||
|
||
- name: Publish to Test PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }} | ||
run: twine upload --verbose --repository testpypi dist\*.whl | ||
|
||
- name: Publish to PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
run: twine upload --verbose --repository pypi dist\*.whl | ||
|
||
release-macos: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, macos-13] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
brew install openssl | ||
pip install build maturin twine | ||
- name: Build the package | ||
run: | | ||
if [[ "${{ matrix.os }}" == "macos-13" ]]; then | ||
maturin build --out dist --release --sdist --target x86_64-apple-darwin --interpreter python3.10 python3.11 python3.12 | ||
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then | ||
maturin build --out dist --release --sdist --target aarch64-apple-darwin --interpreter python3.10 python3.11 python3.12 | ||
fi | ||
- name: ls | ||
run: ls dist/* | ||
|
||
- name: Publish to Test PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }} | ||
run: twine upload --verbose --repository testpypi dist/*.whl | ||
|
||
- name: Publish to PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
run: twine upload --verbose --repository pypi dist/*.whl |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.