-
Notifications
You must be signed in to change notification settings - Fork 314
77 lines (65 loc) · 1.95 KB
/
nrf_wifi_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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