Skip to content

Commit

Permalink
Update dependencies and actions
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
  • Loading branch information
Gelbpunkt committed Jul 9, 2024
1 parent a00fb19 commit 37bb794
Show file tree
Hide file tree
Showing 16 changed files with 359 additions and 290 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-Z", "mir-opt-level=3", "-Z", "unsound-mir-opts", "-C", "target-cpu=native", "-Z", "tune-cpu=native", "-Z", "strip=symbols"]
rustflags = ["-C", "target-cpu=haswell"]

[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build manylinux Python wheels
run: |
podman build -t maturin:latest .
podman run --rm -it -e CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu -v $(pwd):/io maturin:latest build -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 --release --strip --compatibility manylinux_2_28
podman run --rm -it -e CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu -v $(pwd):/io maturin:latest build -f --release --strip --compatibility manylinux_2_28
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-linux
path: 'target/wheels/*-manylinux*.whl'
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -38,7 +38,7 @@ jobs:
env:
CARGO_BUILD_TARGET: x86_64-pc-windows-msvc
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels-windows
path: 'target/wheels/*.whl'
17 changes: 9 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Build manylinux Python wheels
run: |
docker build -t maturin:latest .
docker run --rm -v $(pwd):/io maturin:latest publish --manylinux 2010 --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
docker run --rm CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu -v $(pwd):/io maturin:latest publish --compatibility manylinux_2_28 --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
build-windows:
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
components: rust-src
toolchain: nightly
override: true
- name: Install maturin
run: |
pip install maturin
- name: Build Python wheels
run: |
maturin publish --no-sdist --manylinux off --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
maturin publish --no-sdist --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
env:
CARGO_BUILD_TARGET: x86_64-pc-windows-msvc
Loading

0 comments on commit 37bb794

Please sign in to comment.