-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 952 Bytes
/
build-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build
on:
pull_request:
push:
branches:
- develop
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/clippy
- name: Build application
run: cd firmware && ./fbt fap_clippy