Skip to content

Github Actions: build and release workflow #151

Github Actions: build and release workflow

Github Actions: build and release workflow #151

Workflow file for this run

name: Build native Zephyr samples
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
CMAKE_PREFIX_PATH: /opt/toolchains
CCACHE_IGNOREOPTIONS: -specs=*
REPO: ${{ github.event == 'pull_request' && github.event..head.html_url || github.repository }}

Check failure on line 11 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build native Zephyr samples

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 11, Col: 13): Unexpected symbol: '.'. Located at position 48 within expression: github.event == 'pull_request' && github.event..head.html_url || github.repository
BRANCH: ${{ github.event.pull_request && github.event.pull_request. github.ref_name }}
steps:
- name: Initialize
run: |
echo ${{ github }} | jq -r .
mkdir build && cd build
west init -m https://github.com/${{ github.repository }} --mr ${{ github.ref_name }}
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