File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 8
8
# Configures it as a service more secure
9
9
# Should be used on VMs and not containers
10
10
# Works on OSX and Linux
11
- # Assumes x64 arch
11
+ # Assumes x64 arch (support arm64)
12
12
# See EXAMPLES below
13
13
14
14
flags_found=false
@@ -87,6 +87,9 @@ sudo echo
87
87
runner_plat=linux
88
88
[ ! -z " $( which sw_vers) " ] && runner_plat=osx;
89
89
90
+ runner_arch=x64
91
+ [ ! -z " $( arch | grep arm64) " ] && runner_arch=arm64
92
+
90
93
function fatal()
91
94
{
92
95
echo " error: $1 " >&2
@@ -139,7 +142,7 @@ echo "Downloading latest runner ..."
139
142
# For the GHES Alpha, download the runner from github.com
140
143
latest_version_label=$( curl -s -X GET ' https://api.github.com/repos/actions/runner/releases/latest' | jq -r ' .tag_name' )
141
144
latest_version=$( echo ${latest_version_label: 1} )
142
- runner_file=" actions-runner-${runner_plat} -x64 -${latest_version} .tar.gz"
145
+ runner_file=" actions-runner-${runner_plat} -${runner_arch} -${latest_version} .tar.gz"
143
146
144
147
if [ -f " ${runner_file} " ]; then
145
148
echo " ${runner_file} exists. skipping download."
You can’t perform that action at this time.
0 commit comments