This commit is contained in:
@@ -17,6 +17,29 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install runner prerequisites
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
required_commands=(jq unzip zip xz readelf python3)
|
||||||
|
missing_command=false
|
||||||
|
for command_name in "${required_commands[@]}"; do
|
||||||
|
if ! command -v "$command_name" >/dev/null 2>&1; then
|
||||||
|
missing_command=true
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [[ "$missing_command" == "true" ]]; then
|
||||||
|
sudo_command=()
|
||||||
|
if [[ "$EUID" -ne 0 ]]; then
|
||||||
|
sudo_command=(sudo)
|
||||||
|
fi
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
"${sudo_command[@]}" apt-get update
|
||||||
|
"${sudo_command[@]}" apt-get install -y --no-install-recommends \
|
||||||
|
jq unzip zip xz-utils binutils python3
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Validate signing configuration
|
- name: Validate signing configuration
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user