Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OlofBlomqvist committed Aug 3, 2023
2 parents 5ee0d0d + dc6ec50 commit 6253eae
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# .github/workflows/build_wheels.yml

name: Build Wheels

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: true
default: 'main'

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11']
runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Build with Maturin
uses: PyO3/maturin-action@v1
with:
command: build
args: --release --interpreter python${{ matrix.python-version }}
manylinux: auto
rust-toolchain: nightly

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: wheels
path: target/wheels
if-no-files-found: error # 'warn' or 'ignore' are also available, 'error' will fail the action if no files are found
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .github/workflows/on-push.yml
# .github/workflows/wheely_old.yml

name: Build Wheels
name: Build Wheels OLD

on:
workflow_dispatch:
Expand Down
7 changes: 3 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
pip install marlowe
```

Or pip install wlh files directly:
- release versions: https://github.com/OlofBlomqvist/marlowe-py/releases
- latest builds artifact: https://github.com/OlofBlomqvist/marlowe-py/actions/workflows/wheely.yml

Alternatives:
- pip install wlh files directly using builds artifacts from CI: https://github.com/OlofBlomqvist/marlowe-py/actions/workflows/build_wheels.yml
- clone the repo, install prereqs: rust,python,maturin; run wheels.ps1 or wheels.sh

### How to use

Expand Down

0 comments on commit 6253eae

Please sign in to comment.