From 16cbd54e77a14d1d79853bfe6ae8fda43d972a79 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Apr 2023 16:57:52 +0100 Subject: [PATCH] set -x --- .github/workflows/build_linux.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_linux.yaml b/.github/workflows/build_linux.yaml index 4dbcddbe..62ce4e11 100644 --- a/.github/workflows/build_linux.yaml +++ b/.github/workflows/build_linux.yaml @@ -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