Skip to content

Commit

Permalink
adding CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xtruan committed Mar 13, 2023
1 parent 91831db commit 5350136
Show file tree
Hide file tree
Showing 2 changed files with 62 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: Build

on:
push:
branches:
- main
- develop

env:
firmware_version: '0.78.1'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Flipper Zero Firmware
uses: actions/checkout@v3
with:
repository: 'flipperdevices/flipperzero-firmware'
ref: ${{ env.firmware_version }}
submodules: true
- name: Checkout
uses: actions/checkout@v3
with:
path: 'applications_user/FlipBIP'
- name: Build
run: ./fbt COMPACT=1 DEBUG=0 faps
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

env:
firmware_version: '0.78.1'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Flipper Zero Firmware
uses: actions/checkout@v3
with:
repository: 'flipperdevices/flipperzero-firmware'
ref: ${{ env.firmware_version }}
submodules: true
- name: Checkout
uses: actions/checkout@v3
with:
path: 'applications_user/FlipBIP'
- name: Build
run: ./fbt COMPACT=1 DEBUG=0 faps
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: build/f7-firmware-C/.extapps/FlipBIP.fap
body: Built against firmware v${{ env.firmware_version }}
generate_release_notes: true
fail_on_unmatched_files: true

0 comments on commit 5350136

Please sign in to comment.