Build #105
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
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
# test build every Thursday at 02:00 | |
- cron: '0 2 * * THU' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build application | |
steps: | |
- name: Cache toolchain | |
uses: actions/cache@v3 | |
id: toolchain-cache | |
with: | |
path: ./firmware | |
key: firmware | |
- name: Checkout firmware | |
if: steps.toolchain-cache.outputs.cache-hit != 'true' | |
run: git clone https://github.com/flipperdevices/flipperzero-firmware.git --recursive --depth 1 firmware | |
- name: Install toolchain | |
if: steps.toolchain-cache.outputs.cache-hit != 'true' | |
run: cd firmware && ./fbt | |
- name: Checkout application | |
uses: actions/checkout@v3 | |
with: | |
path: firmware/applications_user/usb_hid_autofire | |
- name: Build application | |
run: cd firmware && ./fbt fap_usb_hid_autofire |