Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyFastANI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Larralde
PyFastANI
Commits
0d06f6a8
Commit
0d06f6a8
authored
2 years ago
by
Martin Larralde
Browse files
Options
Downloads
Patches
Plain Diff
Setup `package.yml` workflow to compile wheels for Aarch64 Linux platforms
parent
b3c2a724
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/package.yml
+89
-1
89 additions, 1 deletion
.github/workflows/package.yml
with
89 additions
and
1 deletion
.github/workflows/package.yml
+
89
−
1
View file @
0d06f6a8
...
@@ -149,6 +149,92 @@ jobs:
...
@@ -149,6 +149,92 @@ jobs:
-
name
:
Run tests without coverage
-
name
:
Run tests without coverage
run
:
python -m unittest pyfastani.tests -vv
run
:
python -m unittest pyfastani.tests -vv
wheel-linux-aarch64
:
runs-on
:
ubuntu-latest
name
:
Build Linux Aarch64 wheels
strategy
:
matrix
:
include
:
-
python-version
:
3.6
pyo3-python
:
/opt/python/cp36-cp36m/bin/python
image-tag
:
latest
-
python-version
:
3.7
pyo3-python
:
/opt/python/cp37-cp37m/bin/python
image-tag
:
latest
-
python-version
:
3.8
pyo3-python
:
/opt/python/cp38-cp38/bin/python
image-tag
:
latest
-
python-version
:
3.9
pyo3-python
:
/opt/python/cp39-cp39/bin/python
image-tag
:
latest
-
python-version
:
'
3.10'
pyo3-python
:
/opt/python/cp310-cp310/bin/python
image-tag
:
latest
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v1
-
name
:
Build manylinux wheels
uses
:
addnab/docker-run-action@v2
with
:
image
:
quay.io/pypa/manylinux2014_aarch64:${{ matrix.image-tag }}
options
:
-v ${{ github.workspace }}:/io -e TERM=$TERM
shell
:
bash
run
:
|
${{ matrix.pyo3-python }} -m pip install -U -r /io/.github/workflows/requirements.txt
${{ matrix.pyo3-python }} -m pip wheel -vv /io -w /tmp
for whl in /tmp/*.whl; do ${{ matrix.pyo3-python }} -m auditwheel repair $whl -w /io/dist; done
-
name
:
Store built wheels
uses
:
actions/upload-artifact@v2
with
:
name
:
dist
path
:
dist/*
test-linux-aarch64
:
runs-on
:
ubuntu-latest
name
:
Test Linux Aarch64 wheels
needs
:
-
wheel-linux-aarch64
strategy
:
matrix
:
include
:
-
python-version
:
3.6
pyo3-python
:
/opt/python/cp36-cp36m/bin/python
image-tag
:
latest
-
python-version
:
3.7
pyo3-python
:
/opt/python/cp37-cp37m/bin/python
image-tag
:
latest
-
python-version
:
3.8
pyo3-python
:
/opt/python/cp38-cp38/bin/python
image-tag
:
latest
-
python-version
:
3.9
pyo3-python
:
/opt/python/cp39-cp39/bin/python
image-tag
:
latest
-
python-version
:
'
3.10'
pyo3-python
:
/opt/python/cp310-cp310/bin/python
image-tag
:
latest
steps
:
-
name
:
Download built wheels
uses
:
actions/download-artifact@v2
with
:
name
:
dist
path
:
dist
-
name
:
Set up QEMU
id
:
qemu
uses
:
docker/setup-qemu-action@v1
-
name
:
Test built wheels
uses
:
addnab/docker-run-action@v2
with
:
image
:
quay.io/pypa/manylinux2014_aarch64:${{ matrix.image-tag }}
options
:
-v ${{ github.workspace }}:/io -e TERM=$TERM
shell
:
bash
run
:
|
${{ matrix.pyo3-python }} -m pip install pyfastani --no-index --find-links=/io/dist
${{ matrix.pyo3-python }} -m unittest pyfastani.tests -vv
# wheel-windows:
# wheel-windows:
# runs-on: windows-latest
# runs-on: windows-latest
# name: Build Windows wheels
# name: Build Windows wheels
...
@@ -263,6 +349,8 @@ jobs:
...
@@ -263,6 +349,8 @@ jobs:
-
test-sdist
-
test-sdist
-
wheel-linux
-
wheel-linux
-
test-linux
-
test-linux
-
wheel-linux-aarch64
-
test-linux-aarch64
-
wheel-osx
-
wheel-osx
-
test-osx
-
test-osx
# - wheel-windows
# - wheel-windows
...
@@ -321,7 +409,7 @@ jobs:
...
@@ -321,7 +409,7 @@ jobs:
-
name
:
Extract package version
-
name
:
Extract package version
run
:
echo PKGVER=$(python setup.py --version) >> $GITHUB_ENV
run
:
echo PKGVER=$(python setup.py --version) >> $GITHUB_ENV
-
name
:
Compute SHA256 of source distribution
-
name
:
Compute SHA256 of source distribution
run
:
echo SHA256=$(sha256sum dist/py
rodigal
-${{ env.PKGVER }}.tar.gz | cut -f1 -d' ') >> $GITHUB_ENV
run
:
echo SHA256=$(sha256sum dist/py
fastani
-${{ env.PKGVER }}.tar.gz | cut -f1 -d' ') >> $GITHUB_ENV
-
name
:
Generate PKGBUILD
-
name
:
Generate PKGBUILD
run
:
sed -e "s/%pkgver/${{ env.PKGVER }}/g" -e "s/%sha256sum/${{ env.SHA256 }}/g" pkg/aur/PKGBUILD.in > pkg/aur/PKGBUILD
run
:
sed -e "s/%pkgver/${{ env.PKGVER }}/g" -e "s/%sha256sum/${{ env.SHA256 }}/g" pkg/aur/PKGBUILD.in > pkg/aur/PKGBUILD
-
name
:
Update package
-
name
:
Update package
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment