Skip to content

Commit

Permalink
testing matrix composition
Browse files Browse the repository at this point in the history
  • Loading branch information
intuibase committed Jun 27, 2024
1 parent d477b1c commit 5794845
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-arch-matrix-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ jobs:
MATRIX=''
if [ "${SELECTED_ARCH}" == "x86_64" ] || [ "${SELECTED_ARCH}" == "all" ]; then
echo "${SELECTED_ARCH} selected. Adding x86_64"
MATRIX+='{"arch": "linux-x86-64"}, {"arch": "linuxmusl-x86-64"},'
MATRIX+='{"arch": "linux-x86-64"}, {"arch": "linuxmusl-x86-64"}'
fi
if [ "${SELECTED_ARCH}" == "arm64" ] || [ "${SELECTED_ARCH}" == "all" ]; then
echo "${SELECTED_ARCH} selected. Adding arm64"
MATRIX+='{"arch": "linux-arm64", "run_qemu": 1},{"arch": "linuxmusl-arm64", "run_qemu": 1},'
if [ -z "${MATRIX}" ]; then
MATRIX+=','
fi
MATRIX+='{"arch": "linux-arm64", "run_qemu": 1},{"arch": "linuxmusl-arm64", "run_qemu": 1}'
fi
echo "matrix-combinations={\"include\":[$MATRIX]}"
Expand Down

0 comments on commit 5794845

Please sign in to comment.