Lines Matching +full:ninja +full:- +full:build
1 name: build & test
6 # This workflow contains 2 jobs build and test
8 build:
9 name: Build uoscore-uedhoc
10 runs-on: ubuntu-latest
13 - name: Install Zephyr tools
15 wget https://apt.kitware.com/kitware-archive.sh
16 sudo bash kitware-archive.sh
17 …--no-install-recommends git cmake ninja-build gperf ccache dfu-util device-tree-compiler wget pyth…
18 cmake --version
19 python3 --version
20 dtc --version
23 sudo apt install python3-venv
24 python3 -m venv ~/zephyrproject/.venv
32 west zephyr-export
34 pip install -r ~/zephyrproject/zephyr/scripts/requirements.txt
38 …wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/zephyr-sdk-0.16.3_linu…
39 …wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/sha256.sum | shas…
41 tar xvf zephyr-sdk-0.16.3_linux-x86_64.tar.xz
42 cd zephyr-sdk-0.16.3
43 /bin/bash -c "yes | ./setup.sh"
45 - name: Checkout code
50 ### build, test and archive
52 - name: Build native_posix
54 source ~/zephyrproject/zephyr/zephyr-env.sh
59 - name: Archive static lib
60 uses: actions/upload-artifact@v2
62 name: uoscore-uedhoc-x86
63 path: test/build/uoscore_uedhoc/libuoscore-uedhoc.a
66 - name: Build native_posix_64
68 source ~/zephyrproject/zephyr/zephyr-env.sh
71 rm -rf build
72 rm -rf build_lib_test
73 west build -b=native_posix_64
74 west build -t run
76 - name: Archive static lib
77 uses: actions/upload-artifact@v2
79 name: uoscore-uedhoc-x86-64
80 path: test/build/uoscore_uedhoc/libuoscore-uedhoc.a
83 - name: Genrate ROM report
85 source ~/zephyrproject/zephyr/zephyr-env.sh
90 - name: Upload rom report with tinycrypt
91 uses: actions/upload-artifact@v2
93 name: rom-report-tinycrypt-crypto
96 - name: Upload rom report with mbedtls
97 uses: actions/upload-artifact@v2
99 name: rom-report-mbedtls-crypto
103 - name: Genrate stack report
105 source ~/zephyrproject/zephyr/zephyr-env.sh
110 - name: Upload stack report
111 uses: actions/upload-artifact@v2
113 name: stack-report
117 - name: Build native_posix with coverage information
119 source ~/zephyrproject/zephyr/zephyr-env.sh
122 rm -rf build
123 rm -rf build_lib_test
124 west build -b native_posix -- -DCONFIG_COVERAGE=y
125 west build -t run
126 lcov --capture --directory ./ --output-file lcov.info -q --rc lcov_branch_coverage=1
127 …genhtml lcov.info --output-directory lcov_html -q --ignore-errors source --branch-coverage --highl…
128 tar -zcvf github-pages.tar.gz lcov_html
130 - name: Upload test coverage report
131 uses: actions/upload-pages-artifact@v1
133 name: github-pages
139 # Add a dependency to the build job
140 needs: build
145 id-token: write # to verify the deployment originates from an appropriate source
147 # Deploy to the github-pages environment
149 name: github-pages
153 runs-on: ubuntu-latest
155 - name: Deploy to GitHub Pages
157 uses: actions/deploy-pages@v1