Skip to content

Commit

Permalink
fix: dont use pixi 😞
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Oct 3, 2023
1 parent 320d986 commit 34ff737
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-lfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ concurrency:
jobs:
lfs_check_pointers:
name: "LFS Warning"
runs-on: ubuntu-latest
steps:
uses: ppremk/[email protected]
- uses: ppremk/[email protected]
39 changes: 23 additions & 16 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ concurrency:

env:
PACKAGE_NAME: py_rattler
PYTHON_VERSION: "3.11"
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
Expand All @@ -36,15 +37,18 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- uses: prefix-dev/setup-[email protected]
- uses: actions/setup-python@v4
with:
pixi-version: v0.3.0
cache: true
manifest-path: py-rattler/pixi.toml
python-version: ${{ env.PYTHON_VERSION }}
- name: "Build sdist"
run: pixi run --manifest-path py-rattler/pixi.toml generate-sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: "Test sdist"
run: pixi run --manifest-path py-rattler/pixi.toml pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall
run: |
rustup default $(cat rust-toolchain)
pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall
- name: "Upload sdist"
uses: actions/upload-artifact@v3
with:
Expand All @@ -59,26 +63,29 @@ jobs:
platform:
- target: x86_64-pc-windows-msvc
arch: x64
# - target: i686-pc-windows-msvc
# arch: x86
- target: i686-pc-windows-msvc
arch: x86
- target: aarch64-pc-windows-msvc
arch: x64
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- uses: prefix-dev/[email protected]
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
architecture: ${{ matrix.platform.arch }}
- name: "Build wheels"
uses: PyO3/maturin-action@v1
with:
pixi-version: v0.3.0
cache: true
manifest-path: py-rattler/pixi.toml
- name: "Build wheel"
run: pixi run --manifest-path py-rattler/pixi.toml generate-wheel --target ${{ matrix.platform.target }}
working-directory: py-rattler
target: ${{ matrix.platform.target }}
args: --release --out dist
- name: "Test wheel"
if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
shell: pixi run --manifest-path py-rattler/pixi.toml bash {0}
shell: bash
run: |
pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall
python -m pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall
- name: "Upload wheels"
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 0 additions & 4 deletions py-rattler/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ fmt-rust-check = "cargo fmt --all --check"
fmt-python-check = "black . --check"
fmt-check = { depends_on = ["fmt-python-check", "fmt-rust-check"] }

# tasks to generate artifacts
generate-sdist = "maturin sdist --out dist"
generate-wheel = "maturin build --release --out dist"

[dependencies]
maturin = "~=1.2.2"
pip = "~=23.2.1"
Expand Down

0 comments on commit 34ff737

Please sign in to comment.