-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an action to verify Linux driver builds with the OSAL changes, Zephyr build is tested as part of NCS. Signed-off-by: Chaitanya Tata <[email protected]>
- Loading branch information
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Linux build | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
# Latest kernel versions won't work for nRF70 driver (this has 5.15) | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Update PATH for west | ||
run: | | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ncs/nrfxlib | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
patch: npg/linux | ||
repository: NordicPlayground/nrf70-linux-driver | ||
ref: main | ||
fetch-depth: 0 | ||
|
||
- name: cache-pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-doc-pip | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt install device-tree-compiler | ||
- name: Install python dependencies | ||
run: | | ||
pip3 install setuptools | ||
pip3 install wheel | ||
pip3 install python-magic lxml junitparser gitlint pylint pykwalify yamllint | ||
pip3 install west | ||
- name: Prepare Linux build | ||
working-directory: npg/linux | ||
run: | | ||
cp ../../ncs/nrfxlib/nrf_wifi ../nrf | ||
ls -l ../ | ||
- name: make | ||
env: | ||
BASE_REF: ${{ github.base_ref }} | ||
run: | | ||
sudo apt install linux-headers-$(uname -r) | ||
make clean all 2>&1 1> make.log | ||
make clean all LOW_POWER=1 2>&1 1> make_lpm.log | ||
make clean all MODE=RADIO-TEST 2>&1 1> make_rt.log | ||
- name: upload-results | ||
uses: actions/upload-artifact@v3 | ||
# Always collect artifacts, even if the build failed | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
name: build-results | ||
path: | | ||
make.log | ||
make_lpm.log | ||
make_rt.log | ||
west.update.log | ||
west.update2.log |