Skip to content

Commit

Permalink
enable all again
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarriba committed Mar 14, 2024
1 parent 6f26f58 commit 63bd754
Showing 1 changed file with 59 additions and 72 deletions.
131 changes: 59 additions & 72 deletions .github/workflows/python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,13 @@ jobs:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x86_64, i686]
#target: [x86_64, aarch64]
target: [x86_64, aarch64]

steps:
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v4
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v1
#- name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
#- name: Log in to the Container registry
# uses: docker/login-action@v1
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- uses: messense/maturin-action@v1
with:
#container: ghcr.io/kornia/kornia-rs/release-${{ matrix.target }}:latest
target: ${{ matrix.target }}
manylinux: auto
command: build
Expand All @@ -42,70 +30,69 @@ jobs:
name: wheels
path: dist

#macos:
# runs-on: macos-latest
# strategy:
# matrix:
# python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
# target: [x86_64, aarch64]
# steps:
# - uses: ilammy/setup-nasm@v1
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# target: ${{ matrix.target }}-apple-darwin
# override: true
# - uses: messense/maturin-action@v1
# with:
# command: build
# maturin-version: latest
# args: --release --target ${{ matrix.target }}-apple-darwin --out dist -i python${{ matrix.python-version }} -m py-kornia/Cargo.toml --sdist
# - name: Upload wheels
# uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: dist
macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x86_64, aarch64]
steps:
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}-apple-darwin
override: true
- uses: messense/maturin-action@v1
with:
command: build
maturin-version: latest
args: --release --target ${{ matrix.target }}-apple-darwin --out dist -i python${{ matrix.python-version }} -m py-kornia/Cargo.toml --sdist
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

#windows:
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
# target: [x64, x86]
# steps:
# - uses: ilammy/setup-nasm@v1
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# architecture: ${{ matrix.target }}
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# - uses: messense/maturin-action@v1
# with:
# command: build
# maturin-version: latest
# args: --release --out dist -i python${{ matrix.python-version }} -m py-kornia/Cargo.toml --sdist
# - name: Upload wheels
# uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: dist
windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x64, x86]
steps:
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.target }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: messense/maturin-action@v1
with:
command: build
maturin-version: latest
args: --release --out dist -i python${{ matrix.python-version }} -m py-kornia/Cargo.toml --sdist
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

release:
name: Release
runs-on: ubuntu-latest
#needs: [macos, windows, linux]
needs: [linux]
needs: [macos, windows, linux]
steps:
- uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 63bd754

Please sign in to comment.