-
Notifications
You must be signed in to change notification settings - Fork 22
77 lines (67 loc) · 2.03 KB
/
createstubs.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
name: Createstubs
on: [push, workflow_dispatch]
jobs:
get_firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
#----------------------------------------------
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
- name: Install dependencies
run: |
# dev versie
pip install git+https://github.com/josverl/micropython-stubber.git@action_board_stubber#subdirectory=modules/mp_downloader
- name: Get Preview firmwares for flashing
run: |
mp_downloader
- uses: actions/upload-artifact@v4
with:
name: firmware
path: firmware
compression-level: 1 # FAST compression
createstubs:
runs-on: self-hosted
needs: get_firmware
steps:
- name: Checkout stubs repo
uses: actions/checkout@v4
# - name: Checkout stubber repo (scripts)
# uses: actions/checkout@v4
# with:
# repository: josverl/micropython-stubber
# path: repos/micropython-stubber
- uses: actions/download-artifact@v4
with:
name: firmware
path: firmware
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
- name: Install dependencies
run: |
pipx install poetry
pip install -U mpremote micropython-stubber
# dev versie
pip install git+https://github.com/josverl/micropython-stubber.git@action_board_stubber#subdirectory=modules/mp_downloader
- name: clone Repos
run: |
stubber clone
# - name: download Preview firmwares for flashing
# run: |
# mp_downloader
- name: run board stubber
run: |
stubber get-mcu-stubs
- name: check in changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "create boardstubs"
git push