Skip to content

Commit

Permalink
Update test_python.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlu authored Sep 28, 2023
1 parent 1eb89c4 commit b47f153
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ name: Test python build on linux
on: [workflow_dispatch]

jobs:
build-manylinux2014-x86_64-wheels:
build-manylinux2014-arm64-wheels:
name: "Build Manylinux 2014 aarch64 wheel"
runs-on: ubuntu-20.04
runs-on: macos-13
defaults:
run:
working-directory: lightspark-crypto-python
container:
image: quay.io/pypa/manylinux2014_aarch64
env:
PLAT: manylinux2014_aarch64
PYBIN: "/opt/python/${{ matrix.python }}/bin"
strategy:
matrix:
python: # Update this list whenever the docker image is updated (check /opt/python/)
Expand All @@ -21,18 +16,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: "Install Python"
uses: actions/setup-python@v4
with:
toolchain: stable
python-version: ${{ matrix.python }}

- name: cargo tree
run: cargo tree

- name: "Generate py source and binaries"
run: bash ./scripts/generate-linux.sh
run: bash ./scripts/generate-linux-arm64.sh

- name: "Build wheel"
run: ${PYBIN}/python setup.py bdist_wheel --plat-name manylinux_2_17_aarch64 --verbose
run: python3 setup.py bdist_wheel --plat-name manylinux_2_17_aarch64 --verbose

- run: pwd
- run: ls dist
Expand Down

0 comments on commit b47f153

Please sign in to comment.