ci(buildx): use a special builder value to indicate host build

This commit is contained in:
Zaiming (Stone) Shi 2023-05-05 22:15:27 +02:00
parent e739e3cadb
commit 22815d4cec
3 changed files with 3 additions and 3 deletions

View File

@ -283,7 +283,7 @@ jobs:
--pkgtype "${PKGTYPE}" \
--arch "${ARCH}" \
--elixir "${IS_ELIXIR}" \
--builder "builder_to_be_ignored"
--builder "force_host"
done
- uses: actions/upload-artifact@v3
if: success()

View File

@ -95,7 +95,7 @@ jobs:
--pkgtype "${PKGTYPE}" \
--arch "${ARCH}" \
--elixir "${IS_ELIXIR}" \
--builder "builder_to_be_ignored"
--builder "force_host"
done
- uses: actions/upload-artifact@v3
if: success()

View File

@ -140,7 +140,7 @@ BUILDER_SYSTEM="$(echo "$BUILDER" | awk -F'-' '{print $NF}')"
CMD_RUN="make ${MAKE_TARGET} && ./scripts/pkg-tests.sh ${MAKE_TARGET}"
IS_NATIVE_SYSTEM='no'
if [[ "$HOST_SYSTEM" = "$BUILDER_SYSTEM" ]]; then
if [[ "$BUILDER_SYSTEM" == "force_host" ]] || [[ "$BUILDER_SYSTEM" == "$HOST_SYSTEM" ]]; then
IS_NATIVE_SYSTEM='yes'
fi