Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci improvements #52

Merged
merged 23 commits into from
Mar 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enable all again
edgarriba committed Mar 14, 2024
commit 63bd754c7b6112795d5c76cd1a1e60e36d9241b7
131 changes: 59 additions & 72 deletions .github/workflows/python_release.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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: