Skip to content

Commit

Permalink
Get version from file to avoid exec error during package on x64 host …
Browse files Browse the repository at this point in the history
…for arm package
  • Loading branch information
David Kale committed Nov 11, 2019
1 parent d6956ba commit c0e866f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit c0e866f

Please sign in to comment.