Skip to content

Commit

Permalink
feat: update action runner to the latest version and install libicu f…
Browse files Browse the repository at this point in the history
…or AL2023

Signed-off-by: Vitaliy Sidorenko <[email protected]>
  • Loading branch information
Vitaliy Sidorenko committed Nov 28, 2024
1 parent d168904 commit d6fa056
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ async function startEc2Instance(label, githubRegistrationToken) {
// Docker and git are necessary for GitHub runner and should be pre-installed on the AMI.
const userData = [
'#!/bin/bash',
'yum install -y libicu',
'mkdir actions-runner && cd actions-runner',
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
'curl -O -L https://github.com/actions/runner/releases/download/v2.278.0/actions-runner-linux-${RUNNER_ARCH}-2.278.0.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.278.0.tar.gz',
'curl -O -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-linux-${RUNNER_ARCH}-2.321.0.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.321.0.tar.gz',
'export RUNNER_ALLOW_RUNASROOT=1',
'export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1',
`./config.sh --url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} --token ${githubRegistrationToken} --labels ${label}`,
Expand Down

0 comments on commit d6fa056

Please sign in to comment.