Skip to content

oleksiikutuzov/flipperzero-ufbt-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flipperzero-ufbt-action (deprecated)

Warning Project will no longer be maintained! Please use an official github action https://github.com/flipperdevices/flipperzero-ufbt-action

Features

  • Saves ufbt cache for your repository as you run it and automatically updates it as needed. More about managing caches.

  • Has error matching and shows errors in Annotations section of the Summary.

  • Uploads artifact after successful build.

Inputs

path

Is not required. Sets the path to a folder where your fap source code is located if it is not in repository root.

channel

Is not required. Sets a channel, from which SDK should be pulled. Can be dev, rc, release. When not specified, defaults to dev.

lint_only

Is not required. Will only lint your code without building. Can be true or false. When not specified, defaults to false.

Usage examples

Example of a workflow, that will pull SDK from rc channel and build your fap:

name: Build FAP

on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Build
      uses: oleksiikutuzov/flipperzero-ufbt-action@v2
      with:
        channel: rc

Example of a workflow, that will pull SDK from default dev channel and lint your code located in lightmeter-fap directory:

name: Lint code

on:
  push:

jobs:
   lint:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Lint
      uses: oleksiikutuzov/flipperzero-ufbt-action@v2
      with:
        path: lightmeter-fap
        lint_only: true

Revision History

Version v2

  • Preparation to ufbt changes

Version v1.5.1

  • Refactor action

Version v1.5.0

  • Add problem matcher

Version v1.4.2

  • Inputs naming overhaul

Version v1.4.1

  • Inputs naming overhaul

Version v1.4.0

  • Support for lint command

Version v1.3.2

  • Do not use external action for jq

Version v1.3.1

  • Automatically set artifact name to fap name

Version v1.3

  • Push artifact after successful build

Version v1.2.3

  • Added channel input to set SDK channel

Version v1.0

  • First release