@@ -25,12 +25,8 @@ concurrency:
2525
2626jobs :
2727 footprint-tracking :
28- runs-on :
29- group : zephyr-runner-v2-linux-x64-4xlarge
28+ runs-on : ubuntu-24.04
3029 if : github.repository_owner == 'zephyrproject-rtos'
31- container :
32- image : ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
33- options : ' --entrypoint /bin/bash'
3430 defaults :
3531 run :
3632 shell : bash
@@ -39,32 +35,10 @@ jobs:
3935 env :
4036 ZEPHYR_TOOLCHAIN_VARIANT : zephyr
4137 steps :
42- - name : Apply container owner mismatch workaround
43- run : |
44- # FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
45- # match the container user UID because of the way GitHub
46- # Actions runner is implemented. Remove this workaround when
47- # GitHub comes up with a fundamental fix for this problem.
48- git config --global --add safe.directory ${GITHUB_WORKSPACE}
49-
50- - name : Print cloud service information
51- run : |
52- echo "ZEPHYR_RUNNER_CLOUD_PROVIDER = ${ZEPHYR_RUNNER_CLOUD_PROVIDER}"
53- echo "ZEPHYR_RUNNER_CLOUD_NODE = ${ZEPHYR_RUNNER_CLOUD_NODE}"
54- echo "ZEPHYR_RUNNER_CLOUD_POD = ${ZEPHYR_RUNNER_CLOUD_POD}"
55-
56- - name : Update PATH for west
57- run : |
58- echo "$HOME/.local/bin" >> $GITHUB_PATH
59-
60- - name : Install packages
61- run : |
62- sudo apt-get update
63- sudo apt-get install -y python3-venv
64-
6538 - name : checkout
6639 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6740 with :
41+ path : zephyr
6842 ref : ${{ github.event.pull_request.head.sha }}
6943 fetch-depth : 0
7044
@@ -76,40 +50,43 @@ jobs:
7650 cache-dependency-path : scripts/requirements-actions.txt
7751
7852 - name : Install Python packages
53+ working-directory : zephyr
7954 run : |
8055 pip install -r scripts/requirements-actions.txt --require-hashes
8156
82- - name : Environment Setup
83- run : |
84- echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
85-
86- - name : west setup
87- run : |
88- west init -l . || true
89- west config --global update.narrow true
90- west update 2>&1 1> west.update.log || west update 2>&1 1> west.update2.log
91-
9257 - name : Configure AWS Credentials
9358 uses : aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
9459 with :
9560 aws-access-key-id : ${{ vars.AWS_TESTING_ACCESS_KEY_ID }}
9661 aws-secret-access-key : ${{ secrets.AWS_TESTING_SECRET_ACCESS_KEY }}
9762 aws-region : us-east-1
9863
64+ - name : Setup Zephyr project
65+ uses : zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6
66+ with :
67+ app-path : zephyr
68+ toolchains : all
69+
70+ - name : Install additional packages
71+ run : |
72+ sudo apt-get update -y
73+ sudo apt-get install -y gperf
74+
9975 - name : Record Footprint
76+ working-directory : zephyr
10077 env :
10178 BASE_REF : ${{ github.base_ref }}
10279 run : |
10380 export ZEPHYR_BASE=${PWD}
10481 ./scripts/footprint/track.py -p scripts/footprint/plan.txt
10582
10683 - name : Upload footprint data
84+ working-directory : zephyr
10785 run : |
108- python3 -m venv .venv
109- . .venv/bin/activate
11086 aws s3 sync --quiet footprint_data/ s3://testing.zephyrproject.org/footprint_data/
11187
11288 - name : Transform Footprint data to Twister JSON reports
89+ working-directory : zephyr
11390 run : |
11491 shopt -s globstar
11592 export ZEPHYR_BASE=${PWD}
11996 ./footprint_data/**/
12097
12198 - name : Upload to ElasticSearch
99+ working-directory : zephyr
122100 env :
123101 ELASTICSEARCH_KEY : ${{ secrets.ELASTICSEARCH_KEY }}
124102 ELASTICSEARCH_SERVER : " https://elasticsearch.zephyrproject.io:443"
0 commit comments