mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Get version from file to avoid exec error during package on x64 host for arm package
This commit is contained in:
@@ -155,7 +155,8 @@ function package ()
|
|||||||
echo "You must build first. Expecting to find ${LAYOUT_DIR}/bin"
|
echo "You must build first. Expecting to find ${LAYOUT_DIR}/bin"
|
||||||
fi
|
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}"
|
runner_pkg_name="actions-runner-${RUNTIME_ID}-${runner_ver}"
|
||||||
|
|
||||||
heading "Packaging ${runner_pkg_name}"
|
heading "Packaging ${runner_pkg_name}"
|
||||||
|
|||||||
Reference in New Issue
Block a user