Skip to content

fix windows build

fix windows build #220

# This file is autogenerated by maturin v1.7.4 and manually modified by ia0.
name: Python - build package
on:
pull_request:
push:
branches:
- 'main'
tags:
- 'python-v*'
schedule:
- cron: '12 3 * * 4' # Refresh the cache weekly.
workflow_dispatch:
permissions:
contents: read
jobs:
build-wheels:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: windows-latest
target: x64
steps:
# - uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # pin@v5
with:
python-version: '3.12'
- name: Install uv
run: curl -LsSf https://astral.sh/uv/0.5.23/install.sh | sh
- if: matrix.platform.runner == 'windows-latest'
name: Check that magika install with uv works on Windows
shell: pwsh
run: |
echo $Env:PATH
$env:PATH += ";$HOME/.local/bin"
echo $Env:PATH
uv init