-
-
Notifications
You must be signed in to change notification settings - Fork 8
131 lines (130 loc) · 4.82 KB
/
compile.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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: 🏗️ Compile Firmware
on:
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- develop
paths:
- "firmware/**"
- "updater/**"
workflow_dispatch:
jobs:
compile_firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile firmware
uses: ./.github/workflows/firmware-compile
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware/firmware.bin ${{ github.workspace }}/firmware.bin
- name: Upload firmware
uses: actions/upload-artifact@v4
with:
name: firmware.bin
path: ${{ github.workspace }}/firmware.bin
compile_firmware_esp32s3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile firmware esp32s3
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_esp32s3
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_esp32s3/firmware.bin ${{ github.workspace }}/firmware-esp32s3.bin
- name: Upload firmware esp32s3
uses: actions/upload-artifact@v4
with:
name: firmware-esp32s3.bin
path: ${{ github.workspace }}/firmware-esp32s3.bin
compile_firmware_esp32c3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile firmware esp32c3
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_esp32c3
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_esp32c3/firmware.bin ${{ github.workspace }}/firmware-esp32c3.bin
- name: Upload firmware esp32c3
uses: actions/upload-artifact@v4
with:
name: firmware-esp32c3.bin
path: ${{ github.workspace }}/firmware-esp32c3.bin
compile_firmware_lite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile lite firmware
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_lite
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_lite/firmware.bin ${{ github.workspace }}/firmware-lite.bin
- name: Upload firmware lite
uses: actions/upload-artifact@v4
with:
name: firmware-lite.bin
path: ${{ github.workspace }}/firmware-lite.bin
compile_jaam2_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile test firmware
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_test
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_test/firmware.bin ${{ github.workspace }}/firmware-jaam2-test.bin
- name: Upload JAAM 2 test firmware
uses: actions/upload-artifact@v4
with:
name: firmware-jaam2-test.bin
path: ${{ github.workspace }}/firmware-jaam2-test.bin
compile_firmware_telnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile firmware with telnet
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_telnet
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_telnet/firmware.bin ${{ github.workspace }}/firmware-telnet.bin
- name: Upload firmware with telnet
uses: actions/upload-artifact@v4
with:
name: firmware-telnet.bin
path: ${{ github.workspace }}/firmware-telnet.bin
# check_firmware:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Check firmware
# uses: ./.github/workflows/firmware-check
# with:
# project-folder: firmware
compile_updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile updater
uses: ./.github/workflows/firmware-compile
with:
project-folder: updater
project-env: updater
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/updater/.pio/build/updater/firmware.bin ${{ github.workspace }}/updater.bin
- name: Upload updater
uses: actions/upload-artifact@v4
with:
name: updater.bin
path: ${{ github.workspace }}/updater.bin