Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Mar 3, 2024
1 parent ba57cb2 commit d14e8f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ jobs:
fail-fast: false
matrix:
os:
# - ubuntu-latest
# - macos-latest
- ubuntu-latest
- macos-latest
- windows-latest
python:
- pypy-3.9
Expand All @@ -286,35 +286,29 @@ jobs:
target/
key: ${{ runner.os }}-${{matrix.python}}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/setup-python@v4
if: ${{ matrix.os != 'windows-latest' }}
with:
python-version: ${{ matrix.python }}
- uses: actions/setup-python@v4
if: ${{ matrix.os == 'windows-latest' }}
with:
python-version: ${{ matrix.python }}
architecture: x86
- name: Build Wheels - cramjam-python
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: -i ${{ matrix.python }} --release --out dist --manifest-path cramjam-python/Cargo.toml
args: -i ${{ matrix.python }} --release --features generate-import-lib --out dist --manifest-path cramjam-python/Cargo.toml
- name: Build Wheels - cramjam-cli
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: -i ${{ matrix.python }} --release --out dist --manifest-path cramjam-cli/Cargo.toml
args: -i ${{ matrix.python }} --release --features generate-import-lib --out dist --manifest-path cramjam-cli/Cargo.toml
- name: cramjam test
run: |
pip install cramjam --no-index --find-links dist
cd cramjam-python
pip install .[dev]
maturin develop --release --features generate-import-lib --extras dev
python -m pytest tests -v
- name: cramjam-cli test
run: |
pip install cramjam-cli --no-index --find-links dist
cd cramjam-cli
maturin develop --release --features generate-import-lib --extras dev
cramjam-cli --help
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion cramjam-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name = "cramjam"
crate-type = ["cdylib"]

[features]
default = ["extension-module", "generate-import-lib"]
default = ["extension-module"]
extension-module = ["pyo3/extension-module"]
generate-import-lib = ["pyo3/generate-import-lib"]

Expand Down

0 comments on commit d14e8f9

Please sign in to comment.