Skip to content

Commit

Permalink
Merge pull request #533 from messense/s390x-wheel
Browse files Browse the repository at this point in the history
Publish maturin wheel for s390x
  • Loading branch information
messense authored May 9, 2021
2 parents 579e3c2 + 53d82e1 commit e925b37
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,45 @@ jobs:
MATURIN_PASSWORD: ${{ secrets.MATURIN_PASSWORD }}
run: |
sudo python3 -m pip install maturin
maturin publish -u __token__ -b bin --no-sdist -o dist --target ${{ matrix.platform.target }} --manylinux ${{ matrix.platform.manylinux }}
maturin publish -u __token__ -b bin --no-sdist --target ${{ matrix.platform.target }} --manylinux ${{ matrix.platform.manylinux }}
- name: Archive binary
run: tar czvf target/release/maturin.tar.gz -C target/${{ matrix.platform.target }}/release maturin
- name: Upload to gitHub release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: maturin-${{ matrix.platform.target }}.tar.gz
file: target/release/maturin.tar.gz
tag: ${{ github.ref }}
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}

release-gnu-pypi:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [
{ target: "s390x-unknown-linux-gnu", image: "messense/manylinux2014-cross:s390x", manylinux: "2014" },
]
container:
image: docker://${{ matrix.platform.image }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.platform.target }}
- name: Build and publish wheel
env:
MATURIN_PASSWORD: ${{ secrets.MATURIN_PASSWORD }}
run: |
sudo python3 -m pip install maturin==0.10.5_beta.4
maturin publish -u __token__ -b bin --no-sdist \
--target ${{ matrix.platform.target }} \
--manylinux ${{ matrix.platform.manylinux }} \
--cargo-extra-args="--no-default-features" \
--cargo-extra-args="--features log,upload,human-panic"
- name: Archive binary
run: tar czvf target/release/maturin.tar.gz -C target/${{ matrix.platform.target }}/release maturin
- name: Upload to gitHub release
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ jobs:
platform: [
{ target: "aarch64-unknown-linux-gnu", arch: "aarch64" },
{ target: "armv7-unknown-linux-gnueabihf", arch: "armv7" },
{ target: "s390x-unknown-linux-gnu", arch: "s390x" },
]
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit e925b37

Please sign in to comment.