@@ -73,11 +73,18 @@ jobs:
73
73
uses : actions/setup-python@v5
74
74
with :
75
75
python-version : 3.x
76
+ - name : Board to port
77
+ id : board-to-port
78
+ run : |
79
+ PORT=$(python tools/board_to_port.py "${{ inputs.board }}")
80
+ echo "port=$PORT" >> $GITHUB_OUTPUT
81
+ shell : bash
76
82
- name : Set up port
77
83
id : set-up-port
78
84
uses : ./.github/actions/deps/ports
79
85
with :
80
86
board : ${{ inputs.board }}
87
+ port : ${{ steps.board-to-port.outputs.port }}
81
88
- name : Set up submodules
82
89
id : set-up-submodules
83
90
uses : ./.github/actions/deps/submodules
88
95
uses : ./.github/actions/deps/external
89
96
with :
90
97
action : cache
91
- port : ${{ steps.set-up -port.outputs.port }}
98
+ port : ${{ steps.board-to -port.outputs.port }}
92
99
- name : Set up mpy-cross
93
100
if : steps.set-up-submodules.outputs.frozen == 'True'
94
101
uses : ./.github/actions/mpy_cross
@@ -115,9 +122,9 @@ jobs:
115
122
FLAGS : ${{ inputs.flags }}
116
123
DEBUG : ${{ inputs.debug && '1' || '0' }}
117
124
run : make -j4 $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
118
- working-directory : ports/${{ steps.set-up -port.outputs.port }}
125
+ working-directory : ports/${{ steps.board-to -port.outputs.port }}
119
126
- name : Upload artifact
120
127
uses : actions/upload-artifact@v4
121
128
with :
122
129
name : ${{ inputs.board }}-${{ inputs.language }}-${{ inputs.version }}${{ inputs.flags != '' && '-custom' || '' }}${{ inputs.debug && '-debug' || '' }}
123
- path : ports/${{ steps.set-up -port.outputs.port }}/build-${{ inputs.board }}/firmware.*
130
+ path : ports/${{ steps.board-to -port.outputs.port }}/build-${{ inputs.board }}/firmware.*
0 commit comments