aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 4f474659e7f0d2021810f2e609732cdb047c5daa (plain)
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
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
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          path: lumen-sdk

      - name: Initialize
        working-directory: lumen-sdk
        run: |
          west init -l .
          west update -o=--depth=1 -n

      - name: Build firmware
        working-directory: lumen-sdk
        run: |
          west twister -T app -v --inline-logs --integration

      - name: Test
        run: ls > test.txt
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: test.txt