8
8
9
9
env :
10
10
MICROPYTHON_VERSION : v1.20.0
11
+ WORKFLOW_VERSION : v0
11
12
12
13
jobs :
13
14
deps :
19
20
uses : actions/cache@v3
20
21
with :
21
22
path : ${{runner.workspace}}
22
- key : workspace-micropython-${{env.MICROPYTHON_VERSION}}-nano-specs
23
+ key : workspace-micropython-${{env.MICROPYTHON_VERSION}}-${{env.WORKFLOW_VERSION}}
23
24
restore-keys : |
24
- workspace-micropython-${{env.MICROPYTHON_VERSION}}-nano-specs
25
+ workspace-micropython-${{env.MICROPYTHON_VERSION}}-${{env.WORKFLOW_VERSION}}
25
26
26
27
# Check out MicroPython
27
28
- name : Checkout MicroPython
@@ -109,9 +110,9 @@ jobs:
109
110
uses : actions/cache@v3
110
111
with :
111
112
path : ${{runner.workspace}}
112
- key : workspace-micropython-${{env.MICROPYTHON_VERSION}}
113
+ key : workspace-micropython-${{env.MICROPYTHON_VERSION}}-${{env.WORKFLOW_VERSION}}
113
114
restore-keys : |
114
- workspace-micropython-${{env.MICROPYTHON_VERSION}}
115
+ workspace-micropython-${{env.MICROPYTHON_VERSION}}-${{env.WORKFLOW_VERSION}}
115
116
116
117
- name : Install Compiler & CCache
117
118
if : runner.os == 'Linux'
@@ -129,20 +130,6 @@ jobs:
129
130
echo "MICROPY_GIT_TAG=$MICROPYTHON_VERSION, ${{matrix.name}} ${{github.event.release.tag_name || github.sha}}" >> $GITHUB_ENV
130
131
echo "MICROPY_GIT_HASH=$MICROPYTHON_VERSION-${{github.event.release.tag_name || github.sha}}" >> $GITHUB_ENV
131
132
132
- - name : " HACK: Clean ports/rp2/modules and ports/rp2/CMakeLists.txt"
133
- shell : bash
134
- working-directory : micropython/ports/rp2
135
- run : |
136
- rm -rf modules
137
- git checkout modules
138
-
139
- - name : " HACK: Revert Patches" # Avoid an already-patched MicroPython tree breaking our build
140
- shell : bash
141
- working-directory : micropython
142
- run : |
143
- git checkout lib/pico-sdk
144
- git checkout ports/rp2/CMakeLists.txt
145
-
146
133
- name : " HACK: CMakeLists.txt Disable C++ Exceptions Patch"
147
134
shell : bash
148
135
working-directory : micropython
0 commit comments