Remove extra config to use NFC pins as GPIOs, it's done in dts already. #1249
Workflow file for this run
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
name: Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2 | |
env: | |
CMAKE_PREFIX_PATH: /opt/toolchains | |
strategy: | |
matrix: | |
built_type: [debug, release] | |
board: [zswatch_nrf5340_cpuapp@1, zswatch_nrf5340_cpuapp@3, zswatch_nrf5340_cpuapp@4, native_posix, nrf5340dk_nrf5340_cpuapp] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: ZSWatch | |
submodules: recursive | |
- name: Dependencies | |
run: | | |
sudo apt update | |
sudo apt install astyle | |
- name: Initialize | |
working-directory: ZSWatch | |
run: | | |
west init -l app | |
west config manifest.group-filter +bsec2 | |
west update -o=--depth=1 -n | |
mkdir fw_images | |
- name: Style | |
working-directory: ZSWatch | |
run: | | |
west format --dry-run | |
- name: Build firmware | |
if: ${{ matrix.board != 'native_posix' }} | |
working-directory: ZSWatch | |
run: | | |
west build app --build-dir ${{ matrix.board }}_${{ matrix.built_type }} -p -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=boards/${{ matrix.built_type }}.conf -DEXTRA_CONF_FILE="boards/bsec.conf" | |
mv ${{ matrix.board }}_${{ matrix.built_type }}/zephyr/zephyr.hex fw_images/${{ matrix.board }}_${{ matrix.built_type }}.hex | |
west build app --build-dir ${{ matrix.board }}_${{ matrix.built_type }}_rotated -p -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=boards/${{ matrix.built_type }}.conf -DEXTRA_CONF_FILE="boards/bsec.conf" -DEXTRA_DTC_OVERLAY_FILE="boards/clockwise_rotation.overlay" | |
mv ${{ matrix.board }}_${{ matrix.built_type }}_rotated/zephyr/zephyr.hex fw_images/${{ matrix.board }}_${{ matrix.built_type }}_rotated.hex | |
- name: Build native_posix | |
if: ${{ matrix.board == 'native_posix' }} | |
working-directory: ZSWatch | |
run: | | |
west build app --build-dir ${{ matrix.board }}_${{ matrix.built_type }} -p -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=boards/${{ matrix.built_type }}.conf | |
- name : Upload Firmware | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.board }}_${{ matrix.built_type }} | |
path: | | |
ZSWatch/fw_images | |
if-no-files-found: ignore |