Skip to content

Commit

Permalink
ci: wifi: Add Linux build
Browse files Browse the repository at this point in the history
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
krish2718 committed Oct 23, 2023
1 parent 27506b6 commit c911310
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/nrf_wifi_build.yml
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 OS agnostic code
uses: actions/checkout@v3
with:
path: ncs/nrfxlib
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Checkout Linux driver
uses: actions/checkout@v3
with:
path: 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 -rf ../../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

0 comments on commit c911310

Please sign in to comment.