Set maturin path when building flake8-to-ruff

This commit is contained in:
Charlie Marsh 2022-10-31 16:38:57 -04:00
parent 621db96e7f
commit 032f4f3f12

View file

@ -8,6 +8,7 @@ concurrency:
env: env:
PACKAGE_NAME: flake8-to-ruff PACKAGE_NAME: flake8-to-ruff
SUBDIRECTORY_NAME: flake8_to_ruff
PYTHON_VERSION: "3.7" # to build abi3 wheels PYTHON_VERSION: "3.7" # to build abi3 wheels
jobs: jobs:
@ -29,7 +30,7 @@ jobs:
uses: messense/maturin-action@v1 uses: messense/maturin-action@v1
with: with:
target: x86_64 target: x86_64
args: --release --out dist --sdist args: --release --out dist --sdist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- name: Install built wheel - x86_64 - name: Install built wheel - x86_64
run: | run: |
@ -56,7 +57,7 @@ jobs:
- name: Build wheels - universal2 - name: Build wheels - universal2
uses: messense/maturin-action@v1 uses: messense/maturin-action@v1
with: with:
args: --release --universal2 --out dist args: --release --universal2 --out dist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- name: Install built wheel - universal2 - name: Install built wheel - universal2
run: | run: |
@ -88,7 +89,7 @@ jobs:
uses: messense/maturin-action@v1 uses: messense/maturin-action@v1
with: with:
target: ${{ matrix.target }} target: ${{ matrix.target }}
args: --release --out dist args: --release --out dist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- name: Install built wheel - name: Install built wheel
shell: bash shell: bash
@ -116,7 +117,7 @@ jobs:
with: with:
target: ${{ matrix.target }} target: ${{ matrix.target }}
manylinux: auto manylinux: auto
args: --release --out dist args: --release --out dist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- name: Install built wheel - name: Install built wheel
if: matrix.target == 'x86_64' if: matrix.target == 'x86_64'
@ -143,7 +144,7 @@ jobs:
with: with:
target: ${{ matrix.target }} target: ${{ matrix.target }}
manylinux: auto manylinux: auto
args: --release --out dist args: --no-default-features --release --out dist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- uses: uraimo/run-on-arch-action@v2.0.5 - uses: uraimo/run-on-arch-action@v2.0.5
if: matrix.target != 'ppc64' if: matrix.target != 'ppc64'
@ -182,7 +183,7 @@ jobs:
with: with:
target: ${{ matrix.target }} target: ${{ matrix.target }}
manylinux: musllinux_1_2 manylinux: musllinux_1_2
args: --release --out dist args: --release --out dist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- name: Install built wheel - name: Install built wheel
if: matrix.target == 'x86_64-unknown-linux-musl' if: matrix.target == 'x86_64-unknown-linux-musl'
@ -218,7 +219,7 @@ jobs:
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
manylinux: musllinux_1_2 manylinux: musllinux_1_2
args: --release --out dist args: --release --out dist -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
- uses: uraimo/run-on-arch-action@master - uses: uraimo/run-on-arch-action@master
name: Install built wheel name: Install built wheel
@ -260,7 +261,7 @@ jobs:
maturin-version: "v0.13.0" maturin-version: "v0.13.0"
target: ${{ matrix.target }} target: ${{ matrix.target }}
manylinux: auto manylinux: auto
args: --release --out dist -i pypy${{ matrix.python-version }} args: --release --out dist -i pypy${{ matrix.python-version }} -m ./crates/${{ env.SUBDIRECTORY_NAME }}/Cargo.toml
- name: Install built wheel - name: Install built wheel
if: matrix.target == 'x86_64' if: matrix.target == 'x86_64'
run: | run: |