@@ -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,38 @@ 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+
9970 - name : Record Footprint
71+ working-directory : zephyr
10072 env :
10173 BASE_REF : ${{ github.base_ref }}
10274 run : |
10375 export ZEPHYR_BASE=${PWD}
10476 ./scripts/footprint/track.py -p scripts/footprint/plan.txt
10577
10678 - name : Upload footprint data
79+ working-directory : zephyr
10780 run : |
108- python3 -m venv .venv
109- . .venv/bin/activate
11081 aws s3 sync --quiet footprint_data/ s3://testing.zephyrproject.org/footprint_data/
11182
11283 - name : Transform Footprint data to Twister JSON reports
84+ working-directory : zephyr
11385 run : |
11486 shopt -s globstar
11587 export ZEPHYR_BASE=${PWD}
11991 ./footprint_data/**/
12092
12193 - name : Upload to ElasticSearch
94+ working-directory : zephyr
12295 env :
12396 ELASTICSEARCH_KEY : ${{ secrets.ELASTICSEARCH_KEY }}
12497 ELASTICSEARCH_SERVER : " https://elasticsearch.zephyrproject.io:443"
0 commit comments