Skip to content

Commit

Permalink
test linux container
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarriba committed Mar 14, 2024
1 parent 6642a1c commit a5b6651
Showing 1 changed file with 60 additions and 59 deletions.
119 changes: 60 additions & 59 deletions .github/workflows/python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: messense/maturin-action@v1
with:
container: ghcr.io/kornia/kornia-rs/release-${{ matrix.target }}:latest
#container: ghcr.io/kornia/kornia-rs/release-${{ matrix.target }}:latest
target: ${{ matrix.target }}
manylinux: auto
command: build
Expand All @@ -40,69 +40,70 @@ 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@v3
- uses: actions/setup-python@v2
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:
maturin-version: latest
command: build
args: --target ${{ matrix.target }}-apple-darwin --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
#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@v3
# - uses: actions/setup-python@v2
# 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:
# maturin-version: latest
# command: build
# args: --target ${{ matrix.target }}-apple-darwin --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@v3
- uses: actions/setup-python@v2
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:
maturin-version: latest
command: build
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@v3
# - uses: actions/setup-python@v2
# 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:
# maturin-version: latest
# command: build
# 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: [macos, windows, linux]
needs: [linux]
steps:
- uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit a5b6651

Please sign in to comment.