Skip to content

Commit

Permalink
also build wheels in release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Arruda committed Jul 25, 2024
1 parent cbd89d4 commit 0b08825
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ jobs:
if-no-files-found: error
path: ./target/extensions/*.so
retention-days: 1

build-wheels:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Build wheels
run: |
bash .utils/build-wheels.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: wheels-linux-x64
if-no-files-found: error
path: ./target/wheels/*.whl
retention-days: 1


build-dylib:
runs-on: macos-latest
Expand All @@ -62,7 +81,28 @@ jobs:
if-no-files-found: error
path: target/release/libcjyafn.dylib
retention-days: 1


build-wheels-macos:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Prepare the machine
run: |
pip install maturin
- name: Build wheels
run: |
bash .utils/build-macos-wheels.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: wheels-macos-arm64
if-no-files-found: error
path: ./target/wheels/*.whl
retention-days: 1

build-extensions-macos:
runs-on: macos-latest
steps:
Expand All @@ -85,8 +125,10 @@ jobs:
release:
needs:
- build-so
- build-wheels
- build-extensions
- build-dylib
- build-wheels-macos
- build-extensions-macos
runs-on: ubuntu-latest
steps:
Expand All @@ -100,6 +142,7 @@ jobs:
files: |
*.so
*.dylib
*.whl
tag_name: commit-id=${{ github.sha }}
prerelease: false
make_latest: true
4 changes: 2 additions & 2 deletions utils/build-linux-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ docker run -i \
make qbe
./qbe --help
cd ../../jyafn-python
maturin build --release -i=3.10
maturin build --release -i=3.11
maturin build --release -i=3.12
maturin build --release -i=3.11
maturin build --release -i=3.10
EOF

docker run -i \
Expand Down

0 comments on commit 0b08825

Please sign in to comment.