Skip to content

Commit

Permalink
Change to build
Browse files Browse the repository at this point in the history
  • Loading branch information
AOS55 committed Mar 15, 2024
1 parent f6c16bd commit d3ce118
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
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
Expand Down

0 comments on commit d3ce118

Please sign in to comment.