-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (71 loc) · 3.24 KB
/
build_firmware.yaml
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
%YAML 1.1
# ^-- ATTN: [2019-12-31] If you use a later version, Github will fail
# with a bogus error message "You have an error in your yaml syntax".
# -*- coding: UTF-8, tab-width: 4 -*-
---
on:
push:
branches:
- '*'
schedule:
- cron: '6 11 * * *'
# because 82h:66m = 3d 11h 6m
jobs:
job_build_nodemcu_for_esp8266_float:
runs-on: ubuntu-latest
name: '[ESP8266 float] Make an all-defaults firmware image'
steps:
- name: '[ESP8266 float] Check out the repo files'
# This example repo doesn't have any files that would be used,
# so this step is useless for the build.
# It's only here to show how you can do it in your fork.
uses: 'actions/checkout@v2'
- name: '[ESP8266 float] Actually build the firmware'
uses: 'mk-pmb/nodemcu-firmware-build-as-github-action@experimental'
with:
firmware_branch: 'dev'
firmware_verify_license: 'results/nodemcu_license.txt'
- name: '[ESP8266 float] Upload the firmware files as artifact'
uses: actions/upload-artifact@v1
with:
name: esp8266_nodemcu_firmware_float
path: results/
job_build_nodemcu_for_esp8266_int:
runs-on: ubuntu-latest
name: '[ESP8266 int] Make an all-defaults firmware image'
steps:
- name: '[ESP8266 int] Check out the repo files'
# This example repo doesn't have any files that would be used,
# so this step is useless for the build.
# It's only here to show how you can do it in your fork.
uses: 'actions/checkout@v2'
- name: '[ESP8266 int] Actually build the firmware'
uses: 'mk-pmb/nodemcu-firmware-build-as-github-action@experimental'
with:
firmware_branch: 'dev'
firmware_hotfix_cmd: >
sed -re 's~^/{2}(#define LUA_NUMBER_INTEGRAL)~\1~'
-i app/include/user_config.h
firmware_verify_license: 'results/nodemcu_license.txt'
- name: '[ESP8266 int] Upload the firmware files as artifact'
uses: actions/upload-artifact@v1
with:
name: esp8266_nodemcu_firmware_int
path: results/
job_build_nodemcu_for_esp32_float:
runs-on: ubuntu-latest
name: '[ESP32 float] Make an all-defaults firmware image'
steps:
- name: '[ESP32 float] Check out the repo files'
uses: 'actions/checkout@v2'
- name: '[ESP32 float] Actually build the firmware'
uses: 'mk-pmb/nodemcu-firmware-build-as-github-action@experimental'
with:
firmware_branch: 'dev-esp32'
firmware_verify_license: 'results/nodemcu_license.txt'
- name: '[ESP32 float] Upload the firmware files as artifact'
uses: actions/upload-artifact@v1
with:
name: esp32_nodemcu_firmware_float
path: results/
...