From 3c065eca59f3d72c741a8ce37f93e1f38f61281a Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Thu, 5 Sep 2024 22:19:40 +0100 Subject: [PATCH] Install aws-cli We have to get it from Amazon directly and run an install script as aws-cli v2 (which is what we use on Windows) is only shipped as a snap, and snaps don't work on Docker, which the GitLab runners use. This is a combination of 4 commits. This is the 1st commit message: Install aws-cli Get it from snap because apt only has 1.x versions. Pass --classic so it can actually see files. This is the commit message #2: But snapd isn't installed by default even though it's Ubuntu's recommended way to install everything This is the commit message #3: Mysterious snap-fixing incantation I guess the service isn't running my default until the next reboot? This is the commit message #4: Snap doesn't work in Docker, apt doesn't have awscli v2+, let's just install random binaries wherever they want to put themselves pick 5f0dfbf768 Install aws-cli squash 1ed2a711fc But snapd isn't installed by default even though it's Ubuntu's recommended way to install everything squash 230c917993 Mysterious snap-fixing incantation squash 75142ff3c2 Snap doesn't work in Docker, apt doesn't have awscli v2+, let's just install random binaries wherever they want to put themselves --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 788531be88..c1977125b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -540,7 +540,13 @@ macOS14_Xcode15_arm64: GIT_STRATEGY: none script: - apt-get update - - apt-get install -y gcab unzip + - apt-get install -y curl gcab unzip + - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscli-exe-linux-x86_64.zip + - unzip -d awscli-exe-linux-x86_64 awscli-exe-linux-x86_64.zip + - pushd awscli-exe-linux-x86_64 + - ./aws/install + - popd + - aws --version - unzip -d sym_store *sym_store.zip - shopt -s globstar - |