Skip to content

Build

Build #77

Workflow file for this run

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