Skip to content

Commit

Permalink
Build Linux AARCH wheels for Python 3.7 and 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano-balto committed Aug 4, 2022
1 parent d0706c4 commit afec01d
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 88 deletions.
38 changes: 32 additions & 6 deletions .github/actions/multistrap/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: "multistrap install"
description: "Install a system root using multistrap"
inputs:
multistrap-config:
description: "Multistrap config file to use"
arch:
description: "Target arch"
required: true
default: ""
pyver:
description: "Python version"
required: false
default: ""
packages:
description: "Extra packages to install"
required: false
Expand All @@ -19,13 +24,34 @@ runs:
- id: create_chroot
run: |
set -xe
echo "arch input parameter: "${{ inputs.arch }}""
echo "pyver input parameter: "${{ inputs.pyver }}""
multistrap_conf="${{ inputs.multistrap-config }}"
if [ "$multistrap_conf" = "multistrap_raspbian_buster.conf" ]; then
wget http://archive.raspbian.org/raspbian/pool/main/r/raspbian-archive-keyring/raspbian-archive-keyring_20120528.2_all.deb && sudo dpkg -i raspbian-archive-keyring_20120528.2_all.deb
elif [ "$multistrap_conf" = "multistrap_raspbian_bullseye.conf" ]; then
multistrap_conf=""
if [ "${{ inputs.arch }}" = "armv7" ]; then
multistrap_conf=multistrap_raspbian_buster.conf
wget http://archive.raspbian.org/raspbian/pool/main/r/raspbian-archive-keyring/raspbian-archive-keyring_20120528.2_all.deb && sudo dpkg -i raspbian-archive-keyring_20120528.2_all.deb
fi
if [ "${{ inputs.arch }}" = "aarch64" ]; then
multistrap_conf=multistrap_armbian64_buster.conf
fi
if [ "${{ inputs.arch }}" = "armv7" ] && [ "${{ inputs.pyver }}" = "3.7" ]; then
multistrap_conf=multistrap_raspbian_buster.conf
fi
if [ "${{ inputs.arch }}" = "armv7" ] && [ "${{ inputs.pyver }}" = "3.9" ]; then
multistrap_conf=multistrap_raspbian_bullseye.conf
fi
if [ "${{ inputs.arch }}" = "aarch64" ] && [ "${{ inputs.pyver }}" = "3.7" ]; then
multistrap_conf=multistrap_armbian64_buster.conf
fi
if [ "${{ inputs.arch }}" = "aarch64" ] && [ "${{ inputs.pyver }}" = "3.9" ]; then
multistrap_conf=multistrap_armbian64_bullseye.conf
fi
if [ "${{ inputs.arch }}" = "" ] && [ "${{ inputs.pyver }}" = "" ]; then
echo "Either arch or pyver input parameters needs to be provided"
exit 1
fi
# Retry 2 times because Rasbian mirrors are often failing
if ! multistrap -d ${{ env.SYSTEM_RASPBIAN }} -f ${{ github.workspace }}/native_client/${multistrap_conf}; then
Expand Down
Loading

0 comments on commit afec01d

Please sign in to comment.