Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/clang.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build with Clang/LLVM

on: pull_request_target
on: pull_request

jobs:
clang-build-prep:
Expand Down Expand Up @@ -39,8 +39,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr

- name: Environment Setup
working-directory: ./zephyr
run: |
pip3 install GitPython
echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand All @@ -59,6 +61,7 @@ jobs:
west update --path-cache /github/cache/zephyrproject 2>&1 1> west.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west2.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject)

- name: Check Environment
working-directory: ./zephyr
run: |
cmake --version
${CLANG_ROOT_DIR}/bin/clang --version
Expand Down Expand Up @@ -90,6 +93,7 @@ jobs:
ccache -M 10G -s

- name: Run Tests with Twister
working-directory: ./zephyr
id: twister
run: |
export ZEPHYR_BASE=${PWD}
Expand Down Expand Up @@ -117,7 +121,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Unit Test Results (Subset ${{ matrix.platform }})
path: twister-out/twister.xml
path: zephyr/twister-out/twister.xml

clang-build-results:
name: "Publish Unit Tests Results"
Expand Down