Github Actions: build and release workflow #144
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 native Zephyr samples | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: zephyrprojectrtos/ci:latest | |
env: | |
CMAKE_PREFIX_PATH: /opt/toolchains | |
CCACHE_IGNOREOPTIONS: -specs=* | |
HEAD_REF: ${{ github.event.pull_request && github.event.pull_request.head.ref || github.ref }} | |
REPOSITORY: ${{ github.event.pull_request && github.event.pull_request.head.repo.full_name || github.repository }} | |
steps: | |
- name: Initialize | |
run: | | |
mkdir build && cd build | |
west init -m https://github.com/${{ env.REPOSITORY }} --mr ${{ env.HEAD_REF }} | |
west update -o=--filter=tree:0 | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
verbose: 1 | |
- name: Build fade | |
working-directory: build | |
run: | | |
west build -p -b arduino_nano_33_ble//sense modules/lib/ArduinoCore-zephyr/samples/fade | |
- name: Build i2cdemo | |
working-directory: build | |
run: | | |
west build -p -b ek_ra8d1 modules/lib/ArduinoCore-zephyr/samples/i2cdemo | |
- name: Build adc | |
working-directory: build | |
run: | | |
west build -p -b arduino_nano_33_ble/nrf52840/sense modules/lib/ArduinoCore-zephyr/samples/analog_input |