Last active
July 30, 2023 08:50
-
-
Save instantiator/9c78fc1dc1930404d9c787cef7e710b6 to your computer and use it in GitHub Desktop.
GitHub Action to build FlipperZero app with ufbt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # place in .github/workflows | |
| name: "build with ufbt" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| ufbt-resistors-build-action: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - name: Official Dev channel | |
| sdk-channel: dev | |
| - name: Official Release channel | |
| sdk-channel: release | |
| - name: Unleashed Dev | |
| sdk-index-url: https://up.unleashedflip.com/directory.json | |
| sdk-channel: dev | |
| - name: Unleashed Release | |
| sdk-index-url: https://up.unleashedflip.com/directory.json | |
| sdk-channel: release | |
| name: 'fap ufbt build for ${{ matrix.name }}' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Build with ufbt | |
| uses: flipperdevices/flipperzero-ufbt-action@v0.1.2 | |
| id: build-app | |
| with: | |
| sdk-channel: ${{ matrix.sdk-channel }} | |
| sdk-index-url: ${{ matrix.sdk-index-url }} | |
| app-dir: YOUR_APP_DIRECTORY # remove this to default to ".", the root of your repository | |
| - name: Upload app artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}-build | |
| path: ${{ steps.build-app.outputs.fap-artifacts }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment