From c0e866faf0a0b40266ce451f04a971a6372241c9 Mon Sep 17 00:00:00 2001 From: David Kale Date: Mon, 11 Nov 2019 15:35:15 -0500 Subject: [PATCH] Get version from file to avoid exec error during package on x64 host for arm package --- src/dev.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dev.sh b/src/dev.sh index 05682c882..246f6c6ac 100755 --- a/src/dev.sh +++ b/src/dev.sh @@ -155,7 +155,8 @@ function package () echo "You must build first. Expecting to find ${LAYOUT_DIR}/bin" fi - runner_ver=$("${LAYOUT_DIR}/bin/Runner.Listener" --version) || failed "version" + # TODO: We are cross-compiling arm on x64 so we cant exec Runner.Listener. Remove after building on native arm host + runner_ver=$("${LAYOUT_DIR}/bin/Runner.Listener" --version) || runner_ver=$(cat runnerversion) || failed "version" runner_pkg_name="actions-runner-${RUNTIME_ID}-${runner_ver}" heading "Packaging ${runner_pkg_name}"