Skip to content

Commit

Permalink
downgrade python
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Aug 13, 2024
1 parent 364ab6e commit 46f0c56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 43 deletions.
49 changes: 7 additions & 42 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
strategy:
matrix:
platform:
- runner: ubuntu-latest
- runner: ubuntu-20.04
target: x86_64
- runner: ubuntu-latest
- runner: ubuntu-20.04
target: x86
- runner: ubuntu-latest
- runner: ubuntu-20.04
target: aarch64
- runner: ubuntu-latest
- runner: ubuntu-20.04
target: armv7
# - runner: ubuntu-latest
# - runner: ubuntu-20.04
# target: s390x
# - runner: ubuntu-latest
# - runner: ubuntu-20.04
# target: ppc64le
python-version: [ '3.8', '3.9', '3.10', '3.11','3.12' ]
steps:
Expand Down Expand Up @@ -93,23 +93,6 @@ jobs:
name: wheels-windows-${{ matrix.platform.target }}-py${{ matrix.python-version }}
path: dist

# sdist:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Change Directory
# run: cd bindings/ceylon
# - name: Build sdist
# uses: PyO3/maturin-action@v1
# with:
# command: sdist
# args: --out dist -m bindings/ceylon/Cargo.toml
# - name: Upload sdist
# uses: actions/upload-artifact@v4
# with:
# name: wheels-sdist
# path: dist

macos:
if: "startsWith(github.ref, 'refs/tags/')"
runs-on: ${{ matrix.platform.runner }}
Expand Down Expand Up @@ -141,22 +124,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}-py${{ matrix.python-version }}
path: dist
release:
name: Release
runs-on: ubuntu-latest
needs: [ linux,windows,macos ]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Publish to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
twine upload --skip-existing *
path: dist
2 changes: 1 addition & 1 deletion .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
release:
name: Ceylon-Release-Python
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: >
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_branch, 'refs/tags/')
Expand Down

0 comments on commit 46f0c56

Please sign in to comment.