Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Added build workflow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedger authored Aug 8, 2023
1 parent f15e0f8 commit d8c1593
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build faps
on:
push:
branches:
- dev
pull_request:
workflow_dispatch:
inputs:
sdk-channel:
description: 'SDK channel to use'
required: true
default: 'rc'
type: choice
options:
- 'rc'
- 'release'
- 'dev'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up ufbt
uses: flipperdevices/[email protected]
with:
sdk-channel: ${{ github.event.inputs.sdk-channel || 'rc'}}
task: setup

- name: Build & lint all apps
run: |
for appdir in $( dirname $( find . -name application.fam ) ) ; do
echo "Building in $appdir"
pushd $appdir
ufbt lint faps
popd
done
rm -rf dist || true && mkdir dist
for fapfile in $( find . -name "*.fap" ) ; do
cp $fapfile dist/
done
- name: Upload all .fap files
uses: actions/upload-artifact@v3
with:
name: faps
path: dist/*.fap

0 comments on commit d8c1593

Please sign in to comment.