@@ -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
@@ -79,37 +53,34 @@ jobs:
7953 run : |
8054 pip install -r scripts/requirements-actions.txt --require-hashes
8155
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-
9256 - name : Configure AWS Credentials
9357 uses : aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
9458 with :
9559 aws-access-key-id : ${{ vars.AWS_TESTING_ACCESS_KEY_ID }}
9660 aws-secret-access-key : ${{ secrets.AWS_TESTING_SECRET_ACCESS_KEY }}
9761 aws-region : us-east-1
9862
63+ - name : Setup Zephyr project
64+ uses : zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6
65+ with :
66+ app-path : zephyr
67+ toolchains : all
68+
9969 - name : Record Footprint
70+ working-directory : zephyr
10071 env :
10172 BASE_REF : ${{ github.base_ref }}
10273 run : |
10374 export ZEPHYR_BASE=${PWD}
10475 ./scripts/footprint/track.py -p scripts/footprint/plan.txt
10576
10677 - name : Upload footprint data
78+ working-directory : zephyr
10779 run : |
108- python3 -m venv .venv
109- . .venv/bin/activate
11080 aws s3 sync --quiet footprint_data/ s3://testing.zephyrproject.org/footprint_data/
11181
11282 - name : Transform Footprint data to Twister JSON reports
83+ working-directory : zephyr
11384 run : |
11485 shopt -s globstar
11586 export ZEPHYR_BASE=${PWD}
11990 ./footprint_data/**/
12091
12192 - name : Upload to ElasticSearch
93+ working-directory : zephyr
12294 env :
12395 ELASTICSEARCH_KEY : ${{ secrets.ELASTICSEARCH_KEY }}
12496 ELASTICSEARCH_SERVER : " https://elasticsearch.zephyrproject.io:443"
0 commit comments