-
Notifications
You must be signed in to change notification settings - Fork 1.7k
146 lines (107 loc) · 4.51 KB
/
buildBinary.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: Build Binaries
on:
push:
branches: [ master ]
paths-ignore:
- .devcontainer/**
- .github/**
- Bootloader/**
- Copy to SD Card root directory to update/**
- images/**
- readme/**
- '**/*.md'
jobs:
main:
name: Build Binaries
if: github.repository == 'bigtreetech/BIGTREETECH-TouchScreenFirmware'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: '3.x'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install -U platformio
- name: Build TFT24 V1.1
run: platformio run --environment BIGTREE_TFT24_V1_1
- name: Build TFT28 V1.0
run: platformio run --environment BIGTREE_TFT28_V1_0
- name: Build TFT28 V3.0
run: platformio run --environment BIGTREE_TFT28_V3_0
- name: Build TFT35 V1.0
run: platformio run --environment BIGTREE_TFT35_V1_0
- name: Build TFT35 V1.1
run: platformio run --environment BIGTREE_TFT35_V1_1
- name: Build TFT35 V1.2
run: platformio run --environment BIGTREE_TFT35_V1_2
- name: Build TFT35 V2.0
run: platformio run --environment BIGTREE_TFT35_V2_0
- name: Build TFT35 V3.0
run: platformio run --environment BIGTREE_TFT35_V3_0
- name: Build TFT35 E3 V3.0
run: platformio run --environment BIGTREE_TFT35_E3_V3_0
- name: Build TFT35 B1 V3.0
run: platformio run --environment BIGTREE_TFT35_B1_V3_0
- name: Build TFT43 V3.0
run: platformio run --environment BIGTREE_TFT43_V3_0
- name: Build TFT50 V3.0
run: platformio run --environment BIGTREE_TFT50_V3_0
- name: Build TFT70 V3.0
run: platformio run --environment BIGTREE_TFT70_V3_0
- name: Build GD_TFT24 V1.1
run: platformio run --environment BIGTREE_GD_TFT24_V1_1
- name: Build GD_TFT35 V2.0
run: platformio run --environment BIGTREE_GD_TFT35_V2_0
- name: Build GD TFT35 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_V3_0
- name: Build GD TFT35 E3 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0
- name: Build GD TFT35 B1 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_B1_V3_0
- name: Build GD TFT43 V3.0
run: platformio run --environment BIGTREE_GD_TFT43_V3_0
- name: Build GD TFT50 V3.0
run: platformio run --environment BIGTREE_GD_TFT50_V3_0
- name: Build GD TFT70 V3.0
run: platformio run --environment BIGTREE_GD_TFT70_V3_0
- name: Build MKS TFT28 V3.0
run: platformio run --environment MKS_TFT28_V3_0
- name: Build MKS TFT28 V4.0
run: platformio run --environment MKS_TFT28_V4_0
- name: Build MKS TFT28 New Genius
run: platformio run --environment MKS_TFT28_NEW_GENIUS
- name: Build MKS TFT32 V1.3
run: platformio run --environment MKS_TFT32_V1_3
- name: Build MKS TFT32 V1.4
run: platformio run --environment MKS_TFT32_V1_4
- name: Build MKS TFT32 V1.4 No Bootloader
run: platformio run --environment MKS_TFT32_V1_4_NOBL
- name: Build MKS TFT32L V3.0
run: platformio run --environment MKS_TFT32L_V3_0
- name: Build MKS TFT35 V1.0
run: platformio run --environment MKS_TFT35_V1_0
- name: Remove Old Binaries
run: find "Copy to SD Card root directory to update/" -name '*.bin' -print -delete
- name: Remove Old Config
run: find "Copy to SD Card root directory to update/" -name 'config*.ini' -print -delete
- name: Copy New Binaries
run: find .pio/build/ -name '*.bin' -exec cp -vf '{}' "./Copy to SD Card root directory to update/" ";"
- name: Copy New Config
run: find TFT/src/User/ -name 'config*.ini' -exec cp -vf '{}' "./Copy to SD Card root directory to update/" ";"
- name: Stage New Binaries
run: |
find "Copy to SD Card root directory to update/" -name '*.bin' -exec git add {} \;
- name: Stage New Config
run: |
find "Copy to SD Card root directory to update/" -name 'config*.ini' -exec git add {} \;
- name: Push
uses: actions-x/commit@v6
with:
email: [email protected]
name: bigtreetech
message: 📦️ Update prebuilt binaries and config
token: ${{ secrets.MY_SECRET_TOKEN }}