From 48cc47838b40d1ae038eec5e1ba52975888c429c Mon Sep 17 00:00:00 2001 From: Richard Schneeman Date: Tue, 2 Apr 2024 14:03:08 -0500 Subject: [PATCH] Install AWS CLI for ARM runners (#40) The ARM runners have no pre-installed tools on them https://github.com/github-early-access/arm-runners-beta?tab=readme-ov-file so they must be manually installed. We use the AWS CLI to upload binaries to S3 when we're done building them. --- .github/workflows/build_ruby.yml | 7 +++++++ .github/workflows/ci.yml | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/build_ruby.yml b/.github/workflows/build_ruby.yml index d1c859c..6680454 100644 --- a/.github/workflows/build_ruby.yml +++ b/.github/workflows/build_ruby.yml @@ -109,6 +109,13 @@ jobs: sudo usermod -aG docker $USER sudo apt-get install acl sudo setfacl --modify user:$USER:rw /var/run/docker.sock + # AWS CLI (and other tools) are not present on the early-access runners. + # We must install them manually: https://github.com/github-early-access/arm-runners-beta + - name: Install AWS CLI + run: | # https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html + curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" + unzip awscliv2.zip + sudo ./aws/install - name: Output CHANGELOG run: bin/print_changelog "${{inputs.ruby_version}}" - name: Build Docker image diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcf8bd4..e62d77b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,16 @@ jobs: sudo usermod -aG docker $USER sudo apt-get install acl sudo setfacl --modify user:$USER:rw /var/run/docker.sock + # AWS CLI (and other tools) are not present on the early-access runners. + # We must install them manually: https://github.com/github-early-access/arm-runners-beta + - name: Install AWS CLI + run: | # https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html + sudo apt-get install -y unzip + curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" + unzip awscliv2.zip + sudo ./aws/install + - name: Verify AWS installed correctly + run: aws --version - name: Output CHANGELOG run: bin/print_changelog "${{matrix.version}}" - name: Build Docker image