Skip to content

Commit

Permalink
weird that it could not find the wheels..........
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekrubin committed Dec 15, 2023
1 parent 2fbc16a commit b30649f
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 137 deletions.
171 changes: 86 additions & 85 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
target: [x86_64, x86]
# target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -62,72 +63,72 @@ jobs:
# pip3 install utiles --find-links dist --force-reinstall
# pip3 install -r requirements/dev.txt

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
working-directory: ./utiles-pyo3
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: utiles-pyo3/dist
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
run: |
set -e
cd utiles-pyo3
pip install click
pip install utiles --no-index --no-deps --find-links dist --force-reinstall
pip install -r requirements/dev.txt
pytest
macos:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
working-directory: ./utiles-pyo3
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: utiles-pyo3/dist
# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# target: [x64, x86]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: "3.10"
# architecture: ${{ matrix.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: "true"
# working-directory: ./utiles-pyo3
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: utiles-pyo3/dist
# - name: pytest
# if: ${{ !startsWith(matrix.target, 'aarch64') }}
# shell: bash
# run: |
# set -e
# cd utiles-pyo3
# pip install click
# pip install utiles --no-index --no-deps --find-links dist --force-reinstall
# pip install -r requirements/dev.txt
# pytest
# macos:
# runs-on: macos-latest
# strategy:
# matrix:
# target: [x86_64, aarch64]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: "3.10"
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: "true"
# working-directory: ./utiles-pyo3
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: utiles-pyo3/dist

- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
run: |
set -e
cd utiles-pyo3
pip install click
pip install utiles --no-index --no-deps --find-links dist --force-reinstall
pip install -r requirements/dev.txt
pytest
# - name: pytest
# if: ${{ !startsWith(matrix.target, 'aarch64') }}
# shell: bash
# run: |
# set -e
# cd utiles-pyo3
# pip install click
# pip install utiles --no-index --no-deps --find-links dist --force-reinstall
# pip install -r requirements/dev.txt
# pytest

sdist:
runs-on: ubuntu-latest
Expand All @@ -148,14 +149,14 @@ jobs:
download-wheels:
name: Release
runs-on: ubuntu-latest
needs: [linux, windows, macos, sdist]
needs: [linux]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: debugging
run: |
ls -la utiles-pyo3/dist/*
find . -name "*.whl"

# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
Expand All @@ -165,20 +166,20 @@ jobs:
# command: upload
# args: --skip-existing *
# working-directory: ./utiles-pyo3
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *
working-directory: ./utiles-pyo3
# release:
# name: Release
# runs-on: ubuntu-latest
# if: "startsWith(github.ref, 'refs/tags/')"
# needs: [linux, windows, macos, sdist]
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# command: upload
# args: --skip-existing *
# working-directory: ./utiles-pyo3
Loading

0 comments on commit b30649f

Please sign in to comment.