Skip to content

Commit

Permalink
Prepare release v0.2.6 with Python aarch64 wheels for Linux (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
fvaleye committed Jun 1, 2022
1 parent 80a5731 commit 91c5aef
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 124 deletions.
67 changes: 28 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,52 +42,41 @@ jobs:
os: windows-2019
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}

- uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Setup
run: make setup
- uses: actions/checkout@v3

- name: Publish to pypi
uses: messense/maturin-action@main
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: make publish TARGET="${{ matrix.target }}" EXTRA_ARGS="--no-sdist"
with:
target: ${{ matrix.target }}
command: publish
args: -m python/Cargo.toml --no-sdist

release-pypi-manylinux:
needs: validate-git-tag
name: PyPI release manylinux
runs-on: ubuntu-20.04
container: quay.io/pypa/manylinux2010_x86_64:2020-12-31-4928808
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Install Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup default stable
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Enable manylinux Python targets
run: echo "/opt/python/cp37-cp37m/bin" >> $GITHUB_PATH

- name: Setup
run: make setup

- name: Publish manylinux to pypi (without sdist)
- name: Publish manylinux to pypi x86_64
uses: messense/maturin-action@main
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: make publish TARGET="x86_64-unknown-linux-gnu" EXTRA_ARGS=""
with:
target: x86_64-unknown-linux-gnu
command: publish
args: -m python/Cargo.toml

- name: Publish manylinux to pypi aarch64 (without sdist)
uses: messense/maturin-action@main
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
target: aarch64-unknown-linux-gnu
command: publish
args: -m python/Cargo.toml --no-sdist

release-documentation:
needs: [ validate-git-tag, release-pypi-manylinux, release-pypi-mac-windows ]
Expand All @@ -97,22 +86,22 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v1

- name: Install Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup default stable
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Enable manylinux Python targets
run: echo "/opt/python/cp37-cp37m/bin" >> $GITHUB_PATH

- name: Setup
run: make setup

- name: Install metadataguardian
run: make install MATURIN_EXTRA_ARGS="--manylinux off"

- name: Build and Publish Sphinx documentation
run: |
echo "Generate the new documentation"
Expand All @@ -123,7 +112,7 @@ jobs:
git config --global user.name 'Github Action'
git config --global user.email 'fvaleye@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
echo "Commit the new changes in the gh-pages"
git reset --hard HEAD
git clean -d -fx .
Expand Down
Loading

0 comments on commit 91c5aef

Please sign in to comment.