Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Korai Labs committed Nov 17, 2023
1 parent d07d2a9 commit 057b847
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Compile and build FW

# Trigger the workflow on push or pull request on any branch
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
# Install common reqired packages: gcc, avr-libc, avrdude, python3, python3-pip
run: sudo apt-get install -y gcc-avr binutils-avr avr-libc avrdude python3 python3-pip zip
- name: Compile Dev
run: ./fbt
- name: Upload dev artifact
uses: actions/upload-artifact@v2
with:
name: firmware_dev-full.dfu
path: dist/f7-D/flipper-z-f7-full-local.dfu
- name: Compile Prod (DEBUG=0, COMPACT=1)
run: ./fbt COMPACT=1 DEBUG=0 updater_package
- name: Upload prod artifact (DFU)
uses: actions/upload-artifact@v2
with:
name: firmware_prod-full.dfu
path: dist/f7-C/flipper-z-f7-full-local.dfu
- name: Create prod artifact (ZIP)
run: zip -r firmware_prod-full.zip dist/f7-C/f7-update-local
- name: Upload prod artifact (ZIP)
uses: actions/upload-artifact@v2
with:
name: firmware_prod-full.zip
path: firmware_prod-full.zip

0 comments on commit 057b847

Please sign in to comment.