-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare release v0.2.6 with Python aarch64 wheels for Linux (#29)
- Loading branch information
Showing
6 changed files
with
110 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ] | ||
|
@@ -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" | ||
|
@@ -123,7 +112,7 @@ jobs: | |
git config --global user.name 'Github Action' | ||
git config --global user.email '[email protected]' | ||
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 . | ||
|
Oops, something went wrong.