This commit is contained in:
Michael Telatynski 2023-04-13 16:57:52 +01:00
parent 3b422e339a
commit 16cbd54e77
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -87,6 +87,7 @@ jobs:
- name: Prepare for cross compilation
if: steps.cache.outputs.cache-hit != 'true' && inputs.arch == 'arm64'
run: |
set -x
sed -i 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ bionic main multiverse restricted universe" | tee -a /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main multiverse restricted universe" | tee -a /etc/apt/sources.list
@ -134,9 +135,10 @@ jobs:
- name: Check native libraries
continue-on-error: ${{ inputs.arch == 'arm64' }}
run: |
set -x
shopt -s globstar
WRONG_ARCHES=$(file dist/**/*.node | grep -v "$ARCH")
if [ "$WRONG_ARCHES" != "" ]; then
if [ ! -z "$WRONG_ARCHES" ]; then
echo "$WRONG_ARCHES"
exit 1
fi