File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Shrinkwrap to validate Arm platform
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ shrinkwrap :
8+ runs-on : ubuntu-24.04-arm
9+ container : shrinkwraptool/base-full
10+ steps :
11+ - name : Checkout Code
12+ uses : actions/checkout@v4
13+
14+ - name : Install Required System Packages
15+ run : |
16+ sudo apt-get update -qq
17+ sudo apt-get install -y git netcat-openbsd python3 python3-pip telnet
18+
19+ - name : Install Required Python Packages
20+ run : |
21+ sudo pip3 install pyyaml termcolor tuxmake
22+ # Check Python version
23+ PYTHON_VERSION=$(python3 --version | cut -d' ' -f2)
24+ # Install graphlib-backport if Python version is older than 3.9
25+ if [[ "$(printf '3.9\n%s\n' "$PYTHON_VERSION" | sort -V | head -n1)" != "3.9" ]]; then
26+ sudo pip3 install graphlib-backport
27+ fi
28+
29+ - name : Clone Shrinkwrap Repository
30+ run : |
31+ git clone https://git.gitlab.arm.com/tooling/shrinkwrap.git
32+
33+ - name : Update PATH Environment Variable
34+ run : |
35+ echo "export PATH=$PWD/shrinkwrap/shrinkwrap:\$PATH" >> $GITHUB_ENV
36+
37+ - name : Validate Shrinkwrap Installation
38+ run : |
39+ echo "Checking if Shrinkwrap is installed correctly..."
40+ shrinkwrap --help || { echo "Shrinkwrap not found or not installed correctly"; exit 1; }
You can’t perform that action at this time.
0 commit comments