|
@@ -1,24 +1,27 @@
|
|
|
-name: Flipper Zero CI
|
|
|
|
|
-
|
|
|
|
|
-on:
|
|
|
|
|
- push:
|
|
|
|
|
- tags:
|
|
|
|
|
- - "v*.*"
|
|
|
|
|
|
|
+name: "FAP: Build and lint"
|
|
|
|
|
+on: [push, pull_request]
|
|
|
jobs:
|
|
jobs:
|
|
|
- build:
|
|
|
|
|
|
|
+ ufbt-build-action:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
+ name: 'ufbt: Build'
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v3
|
|
|
|
|
- - name: Clone ufbt
|
|
|
|
|
- run: |
|
|
|
|
|
- git config --global url.https://github.com/.insteadOf git://github.com/
|
|
|
|
|
- git clone https://github.com/flipperdevices/flipperzero-ufbt.git ../ufbt
|
|
|
|
|
- - name: Ufbt Build App
|
|
|
|
|
- run: |
|
|
|
|
|
- ../ufbt/ufbt "fap_$(grep -o 'appid="[a-zA-Z0-9]\+"' application.fam | awk -F '"' '{print $2}')"
|
|
|
|
|
|
|
+ - name: Checkout
|
|
|
|
|
+ uses: actions/checkout@v4
|
|
|
|
|
+ - name: Build with ufbt GAME BOY Pokemon Trading
|
|
|
|
|
+ uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
|
|
|
|
|
+ id: build-app-gb-pokemon-trading
|
|
|
|
|
+ with:
|
|
|
|
|
+ # Set to 'release' to build for latest published release version
|
|
|
|
|
+ sdk-channel: release
|
|
|
|
|
+ app-dir: ./
|
|
|
|
|
+ - name: Upload app artifacts GAME BOY Pokemon Trading
|
|
|
|
|
+ uses: actions/upload-artifact@v3
|
|
|
|
|
+ with:
|
|
|
|
|
+ name: ${{ github.event.repository.name }}-${{ steps.build-app-gb-pokemon-trading.outputs.suffix }}
|
|
|
|
|
+ path: ${{ steps.build-app-gb-pokemon-trading.outputs.fap-artifacts }}
|
|
|
- name: Release
|
|
- name: Release
|
|
|
uses: softprops/action-gh-release@v1
|
|
uses: softprops/action-gh-release@v1
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
with:
|
|
with:
|
|
|
files: |
|
|
files: |
|
|
|
- ../ufbt/.ufbt/build/**/*.fap
|
|
|
|
|
|
|
+ ${{ steps.build-app-gb-pokemon-trading.outputs.fap-artifacts }}
|