mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
Update wheel.yml
This commit is contained in:
parent
223600217b
commit
702ef84a87
1 changed files with 8 additions and 8 deletions
16
.github/workflows/wheel.yml
vendored
16
.github/workflows/wheel.yml
vendored
|
|
@ -48,19 +48,19 @@ jobs:
|
||||||
- name: "Restore RTools40"
|
- name: "Restore RTools40"
|
||||||
if: startsWith(runner.os, 'Windows')
|
if: startsWith(runner.os, 'Windows')
|
||||||
id: cache-rtools
|
id: cache-rtools
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: C:/rtools40
|
path: C:/rtools40
|
||||||
key: ${{ runner.os }}-${{ env.OS_VERSION }}-rtools-v1
|
key: ${{ runner.os }}-${{ env.OS_VERSION }}-rtools-v1
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: matrix.cibw_arch == 'aarch64'
|
if: matrix.cibw_arch == 'aarch64'
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
- name: "Build wheels"
|
- name: "Build wheels"
|
||||||
uses: pypa/cibuildwheel@v2.16.2
|
uses: pypa/cibuildwheel@v2
|
||||||
with:
|
with:
|
||||||
package-dir: python
|
package-dir: python
|
||||||
env:
|
env:
|
||||||
|
|
@ -75,7 +75,7 @@ jobs:
|
||||||
CIBW_TEST_COMMAND: pytest --pyargs prophet
|
CIBW_TEST_COMMAND: pytest --pyargs prophet
|
||||||
|
|
||||||
- name: "Upload wheel as artifact"
|
- name: "Upload wheel as artifact"
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact-${{ matrix.os }}-${{ matrix.cibw_arch }}-wheel
|
name: artifact-${{ matrix.os }}-${{ matrix.cibw_arch }}-wheel
|
||||||
path: "./**/*.whl"
|
path: "./**/*.whl"
|
||||||
|
|
@ -84,12 +84,12 @@ jobs:
|
||||||
name: Make source distribution
|
name: Make source distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: pipx run build --sdist
|
- run: pipx run build --sdist
|
||||||
working-directory: python
|
working-directory: python
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact-source-dist
|
name: artifact-source-dist
|
||||||
path: "./**/dist/*.tar.gz"
|
path: "./**/dist/*.tar.gz"
|
||||||
|
|
@ -101,7 +101,7 @@ jobs:
|
||||||
if: github.event_name == 'release' && github.event.action == 'published'
|
if: github.event_name == 'release' && github.event.action == 'published'
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Copy artifacts to dist/ folder
|
- name: Copy artifacts to dist/ folder
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -111,7 +111,7 @@ jobs:
|
||||||
find . -name '*.whl' -exec mv '{}' dist/ \;
|
find . -name '*.whl' -exec mv '{}' dist/ \;
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: pypa/gh-action-pypi-publish@v1.4.2
|
uses: pypa/gh-action-pypi-publish@v1
|
||||||
with:
|
with:
|
||||||
user: ${{ secrets.PYPI_USERNAME }}
|
user: ${{ secrets.PYPI_USERNAME }}
|
||||||
password: ${{ secrets.PYPI_PASSWORD }}
|
password: ${{ secrets.PYPI_PASSWORD }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue