Skip to content

Commit a315854

Browse files
Merge branch 'multi-os-multi-runner' of github.com:febiosoftware/ec2-multiple-github-runners into multi-os-multi-runner
2 parents 2d22550 + 34dcd40 commit a315854

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132834,13 +132834,13 @@ const globalConfig = [
132834132834
'apt-get update && apt-get install libicu60 -y',
132835132835
'mkdir -p /tmp && cd /tmp',
132836132836
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
132837-
'curl -O -L https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-linux-${RUNNER_ARCH}-2.311.0.tar.gz',
132837+
'curl -O -L https://github.com/actions/runner/releases/download/v2.332.0/actions-runner-linux-x64-2.332.0.tar.gz',
132838132838
].join("\n");
132839132839

132840132840
function createRegistration(label, githubRegistrationToken) {
132841132841
return [
132842132842
'mkdir -p /tmp/runner && cd /tmp/runner',
132843-
`tar xzf /tmp/actions-runner-linux-\${RUNNER_ARCH}-2.311.0.tar.gz -C /tmp/runner`,
132843+
`tar xzf /tmp/actions-runner-linux-x64-2.332.0.tar.gz -C /tmp/runner`,
132844132844
'export RUNNER_ALLOW_RUNASROOT=1',
132845132845
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name ${label} --unattended`,
132846132846
'./run.sh 2>&1 &'
@@ -132884,15 +132884,15 @@ const globalConfig = [
132884132884
// Create runner dir
132885132885
'mkdir C:\\actions-runner; cd C:\\actions-runner',
132886132886
// Download GitHub Runner
132887-
'Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-win-x64-2.313.0.zip -OutFile actions-runner-win-x64-2.313.0.zip',
132887+
'Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.332.0/actions-runner-win-x64-2.332.0.zip -OutFile actions-runner-win-x64-2.332.0.zip',
132888132888
// Check hash is good
132889-
'if((Get-FileHash -Path actions-runner-win-x64-2.313.0.zip -Algorithm SHA256).Hash.ToUpper() -ne \'c4cb3e5d9f0ab42ddc224cfdf9fb705397a7b20fd321536da5500259225fdf8a\'.ToUpper()){ throw \'Computed checksum did not match\' }',
132889+
'if((Get-FileHash -Path actions-runner-win-x64-2.332.0.zip -Algorithm SHA256).Hash.ToUpper() -ne \'sha256:83e56e05b21eb58c9697f82e52c53b30867335ff039cd5d44d1a1a24d2149f4b\'.ToUpper()){ throw \'Computed checksum did not match\' }',
132890132890
].join("\n");
132891132891

132892132892
function createRegistration(label, githubRegistrationToken) {
132893132893
return [
132894132894
// Extract runner .zip
132895-
'Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/actions-runner-win-x64-2.313.0.zip", "$PWD")',
132895+
'Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/actions-runner-win-x64-2.332.0.zip", "$PWD")',
132896132896
// Configure the runner for the current repo
132897132897
`.\\config.cmd --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label} --name ${label} --unattended`,
132898132898
// Run it!

0 commit comments

Comments
 (0)