Skip to content

Commit

Permalink
add Github Action to build app (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
gebeto committed Aug 4, 2023
1 parent 1da7675 commit 1a4df39
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/build.yaml
@@ -1,27 +1,23 @@
name: CI
name: "FAP: Build"

on:
push:
branches: [ main ]
on: [push]

jobs:
build-fap:
ufbt-build-action:
runs-on: ubuntu-latest
container:
image: an4tur0r/flipperzero-unleashed:latest
env:
APP_NAME: xbox_controller
volumes:
- ${{ github.workspace }}:/flipperzero-unleashed/applications_user/xbox_controller
options: --cpus 1
name: 'ufbt: Build'
steps:
- uses: actions/checkout@v3
- name: Build
run: |
cd /flipperzero-unleashed
./fbt fap_xbox_controller
cp build/f7-firmware-D/.extapps/xbox_controller.fap applications_user/xbox_controller/
- uses: actions/upload-artifact@v3
- name: Checkout
uses: actions/checkout@v3

- name: Build with ufbt
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
id: build-app
with:
sdk-channel: release

- name: Upload app artifacts
uses: actions/upload-artifact@v3
with:
name: xbox_controller
path: ./xbox_controller.fap
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
path: ${{ steps.build-app.outputs.fap-artifacts }}

0 comments on commit 1a4df39

Please sign in to comment.