1111jobs :
1212 analyze :
1313 name : Analyze (${{ matrix.language }})
14- runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
14+ # runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+ runs-on :
16+ group : test-runner-v2-linux-x64-4xlarge
1517 permissions :
1618 # required for all workflows
1719 security-events : write
@@ -37,37 +39,43 @@ jobs:
3739 - name : Checkout
3840 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3941 with :
42+ ref : ${{ github.event.pull_request.head.sha }}
4043 fetch-depth : 0
41- path : zephyr
44+ persist-credentials : false
4245
43- - name : Rebase
44- if : github.event_name == 'pull_request'
45- env :
46- BASE_REF : ${{ github.base_ref }}
47- PR_HEAD : ${{ github.event.pull_request.head.sha }}
48- working-directory : zephyr
49- shell : bash
46+ - name : Environment Setup
5047 run : |
51- git config --global user.email "[email protected] " 52- git config --global user.name "Github Actions"
53- rm -fr ".git/rebase-apply"
54- rm -fr ".git/rebase-merge"
55- git rebase origin/${BASE_REF}
56- git clean -f -d
57- git log --graph --oneline HEAD...${PR_HEAD}
48+ if [ "${{github.event_name}}" = "pull_request" ]; then
49+ git config --global user.email "[email protected] " 50+ git config --global user.name "Zephyr Builder"
51+ rm -fr ".git/rebase-apply"
52+ rm -fr ".git/rebase-merge"
53+ git rebase origin/${BASE_REF}
54+ git clean -f -d
55+ git log --pretty=oneline | head -n 10
56+ fi
57+ echo "$HOME/.local/bin" >> $GITHUB_PATH
58+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
5859
59- - name : Set up Python
60- if : matrix.language == 'c-cpp'
61- uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
62- with :
63- python-version : 3.11
60+ west init -l . || true
61+ west config manifest.group-filter -- +ci,+optional
62+ west config --global update.narrow true
63+ 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)
64+ west forall -c 'git reset --hard HEAD'
65+
66+ echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
67+
68+ - name : Check Environment
69+ run : |
70+ cmake --version
71+ gcc --version
72+ cargo --version
73+ rustup target list --installed
74+ ls -la
75+ echo "github.ref: ${{ github.ref }}"
76+ echo "github.base_ref: ${{ github.base_ref }}"
77+ echo "github.ref_name: ${{ github.ref_name }}"
6478
65- - name : Setup Zephyr project
66- if : matrix.language == 'c-cpp'
67- uses : zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6
68- with :
69- app-path : zephyr
70- toolchains : all
7179
7280 - name : Initialize CodeQL
7381 uses : github/codeql-action/init@v3
0 commit comments