1212 analyze :
1313 name : Analyze (${{ matrix.language }})
1414 # runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15- runs-on :
16- group : test-runner-v2-linux-x64-4xlarge
17- container :
18- image : ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
19- options : ' --entrypoint /bin/bash'
15+ runs-on : ubuntu-24.04
2016 permissions :
2117 # required for all workflows
2218 security-events : write
@@ -32,69 +28,15 @@ jobs:
3228 fail-fast : false
3329 matrix :
3430 include :
35- - language : c-cpp
36- build-mode : manual
3731 - language : python
3832 build-mode : none
3933 - language : actions
4034 build-mode : none
4135 - language : javascript-typescript
4236 build-mode : none
43- env :
44- LLVM_TOOLCHAIN_PATH : /usr/lib/llvm-16
4537 steps :
46- - name : Apply container owner mismatch workaround
47- run : |
48- # FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
49- # match the container user UID because of the way GitHub
50- # Actions runner is implemented. Remove this workaround when
51- # GitHub comes up with a fundamental fix for this problem.
52- git config --global --add safe.directory ${GITHUB_WORKSPACE}
53-
54- - name : Clone cached Zephyr repository
55- continue-on-error : true
56- run : |
57- git clone --shared /repo-cache/zephyrproject/zephyr .
58- git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
5938 - name : Checkout
6039 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
61- with :
62- ref : ${{ github.event.pull_request.head.sha }}
63- fetch-depth : 0
64- persist-credentials : false
65-
66- - name : Environment Setup
67- run : |
68- if [ "${{github.event_name}}" = "pull_request" ]; then
69- git config --global user.email "[email protected] " 70- git config --global user.name "Zephyr Builder"
71- rm -fr ".git/rebase-apply"
72- rm -fr ".git/rebase-merge"
73- git rebase origin/${BASE_REF}
74- git clean -f -d
75- git log --pretty=oneline | head -n 10
76- fi
77- echo "$HOME/.local/bin" >> $GITHUB_PATH
78- echo "$HOME/.cargo/bin" >> $GITHUB_PATH
79-
80- west init -l . || true
81- west config manifest.group-filter -- +ci,+optional
82- west config --global update.narrow true
83- west update --path-cache /repo-cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /repo-cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /repo-cache/zephyrproject)
84- west forall -c 'git reset --hard HEAD'
85-
86- echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
87-
88- - name : Check Environment
89- run : |
90- cmake --version
91- gcc --version
92- cargo --version
93- rustup target list --installed
94- ls -la
95- echo "github.ref: ${{ github.ref }}"
96- echo "github.base_ref: ${{ github.base_ref }}"
97- echo "github.ref_name: ${{ github.ref_name }}"
9840
9941
10042 - name : Initialize CodeQL
0 commit comments