Skip to content

Commit

Permalink
Merge pull request #3 from ElectronicCats/build-app
Browse files Browse the repository at this point in the history
feat:add github action
  • Loading branch information
sabas1080 authored Aug 20, 2024
2 parents aa091e7 + b47edea commit 6fdf27b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "FAP: Build and lint"
on: [push, pull_request]
jobs:
ufbt-build-action:
runs-on: ubuntu-latest
name: 'ufbt: Build for Dev branch'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build with ufbt
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
id: build-app
with:
# Set to 'release' to build for latest published release version or dev for develop
sdk-channel: release
app-dir: ./ModbusApp/
- name: Upload app artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
path: ${{ steps.build-app.outputs.fap-artifacts }}
# You can remove this step if you don't want to check source code formatting
- name: Lint sources
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
with:
# skip SDK setup, we already did it in previous step
skip-setup: true
task: lint

0 comments on commit 6fdf27b

Please sign in to comment.