From d3ce118bb2375e97bd7a5ab93fd8aefca8461dbd Mon Sep 17 00:00:00 2001 From: AOS55 Date: Fri, 15 Mar 2024 12:14:57 +0000 Subject: [PATCH] Change to build --- .github/workflows/build.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 558774a..4e5429c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,7 @@ jobs: strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] + target: [x86_64] steps: - uses: actions/checkout@v2 @@ -31,21 +32,18 @@ jobs: python -m pip install --upgrade pip sudo pip install pygame pip install -e .[deploy] - - name: Build PyRust module + - name: Build pyflyer-rs wheels uses: PyO3/maturin-action@v1.42.0 with: - command: build - args: --release + target: ${{ matrix.python-version }} + manylinux: auto + args: --release --out dist -m python/Cargo.toml working-directory: ./pyflyer-rs - - name: Install PyRust module + - name: Install pyflyer-rs wheels + if: matrix.target == 'x86_64' run: | - WHEEL_DIR=./pyflyer-rs/target/wheels - for file in "$WHEEL_DIR"/*.whl - do - WHEEL_FILE=$file - echo The wheel file: $WHEEL_FILE - done - sudo pip install $WHEEL_FILE + pip install pyflyer --no-index --find-links dist --force-reinstall + python -c "import pyflyer" - name: Lint with flake8 run: | pip install flake8