-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (52 loc) · 1.44 KB
/
ci.yml
File metadata and controls
63 lines (52 loc) · 1.44 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
test:
name: Parser Tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run parser validation tests
run: make test
build:
name: Build Plugin
runs-on: ubuntu-latest
timeout-minutes: 45
needs: test # Only build if tests pass
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout flipperzero-firmware submodule
run: |
git submodule update --init flipperzero-firmware
cd flipperzero-firmware
git submodule update --init --depth 1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Cache Flipper toolchain
uses: actions/cache@v4
with:
path: flipperzero-firmware/toolchain
key: flipper-toolchain-${{ runner.os }}-v2
restore-keys: |
flipper-toolchain-${{ runner.os }}-
- name: Build Bambu parser plugin
env:
FBT_NO_SYNC: 1
FBT_GIT_SUBMODULE_SHALLOW: 1
run: make build
- name: Upload plugin artifact
uses: actions/upload-artifact@v4
with:
name: bambu_parser
path: dist/bambu_parser.fal
retention-days: 30