forked from flipperdevices/flipperzero-firmware
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Korai Labs
committed
Nov 17, 2023
1 parent
d07d2a9
commit 057b847
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |