Skip to content

Commit

Permalink
remove macos for now, fix windows
Browse files Browse the repository at this point in the history
bastiscode committed Nov 11, 2023

Verified

This commit was signed with the committer’s verified signature.
JoshuaVandaele Joshua Vandaële
1 parent fcc05cc commit 1f0a1a1
Showing 2 changed files with 2 additions and 79 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -7,42 +7,6 @@ on:
pull_request:

jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- uses: dtolnay/rust-toolchain@stable
- name: "Rust: Check and test"
run: |
cargo fmt --all -- --check
cargo check
cargo clippy -- -D warnings
cargo test
- name: Build wheels - x86_64
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist
- name: "Python: Install wheels and test import - x86_64"
run: |
pip install patchelf
pip install dist/*.whl --force-reinstall
python -c "import text_utils"
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
target: universal2-apple-darwin
args: --release --out dist
- name: "Python: Install wheels and test import - universal2"
run: |
pip install patchelf
pip install dist/*.whl --force-reinstall
python -c "import text_utils"
windows:
runs-on: windows-latest
strategy:
@@ -53,7 +17,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
target: ${{ matrix.target }}
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
- name: "Rust: Check and test"
run: |
43 changes: 1 addition & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -6,47 +6,6 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- uses: dtolnay/rust-toolchain@stable
- name: "Rust: Check and test"
run: |
cargo fmt --all -- --check
cargo check
cargo clippy -- -D warnings
cargo test
- name: Build wheels - x86_64
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist
- name: "Python: Install wheels and test import - x86_64"
run: |
pip install patchelf
pip install dist/*.whl --force-reinstall
python -c "import text_utils"
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
target: universal2-apple-darwin
args: --release --out dist
- name: "Python: Install wheels and test import - universal2"
run: |
pip install patchelf
pip install dist/*.whl --force-reinstall
python -c "import text_utils"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

windows:
runs-on: windows-latest
strategy:
@@ -57,7 +16,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
target: ${{ matrix.target }}
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
- name: "Rust: Check and test"
run: |

0 comments on commit 1f0a1a1

Please sign in to comment.