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
Showing
1 changed file
with
25 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,25 @@ | ||
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 Prod (DEBUG=0, COMPACT=1) | ||
run: ./fbt COMPACT=1 DEBUG=0 updater_package > log.txt | ||
- name: Upload prod artifact (TAR) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: flipper-z-f7-update-Korai.tgz | ||
path: dist/*/flipper-z-f7-update-Korai.tgz | ||
- name: Upload log | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: log.txt | ||
path: log.txt |