mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 20:06:37 +00:00
ci: install zip and aws CLI on self-hosted runners (#4897)
This commit is contained in:
@@ -56,6 +56,7 @@ runs:
|
|||||||
libssl-dev \
|
libssl-dev \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
unzip \
|
unzip \
|
||||||
|
zip \
|
||||||
protobuf-compiler
|
protobuf-compiler
|
||||||
|
|
||||||
- name: Install protoc
|
- name: Install protoc
|
||||||
|
|||||||
@@ -583,9 +583,19 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# The self-hosted Linux runners do not ship the aws CLI (GitHub-hosted
|
||||||
|
# images did). Install it on demand so R2 uploads survive a fresh runner
|
||||||
|
# instead of hard-failing here.
|
||||||
if ! command -v aws >/dev/null 2>&1; then
|
if ! command -v aws >/dev/null 2>&1; then
|
||||||
echo "❌ aws CLI not found on runner; cannot upload to R2"
|
echo "aws CLI not found on runner; installing..."
|
||||||
exit 1
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
|
sudo apt-get update && sudo apt-get install -y awscli
|
||||||
|
elif command -v brew >/dev/null 2>&1; then
|
||||||
|
brew install awscli
|
||||||
|
else
|
||||||
|
echo "❌ aws CLI missing and no apt-get/brew to install it; cannot upload to R2"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export AWS_ACCESS_KEY_ID="$R2_ACCESS_KEY_ID"
|
export AWS_ACCESS_KEY_ID="$R2_ACCESS_KEY_ID"
|
||||||
|
|||||||
Reference in New Issue
Block a user