@@ -73,11 +73,18 @@ jobs:
7373 uses : actions/setup-python@v5
7474 with :
7575 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
7682 - name : Set up port
7783 id : set-up-port
7884 uses : ./.github/actions/deps/ports
7985 with :
8086 board : ${{ inputs.board }}
87+ port : ${{ steps.board-to-port.outputs.port }}
8188 - name : Set up submodules
8289 id : set-up-submodules
8390 uses : ./.github/actions/deps/submodules
8895 uses : ./.github/actions/deps/external
8996 with :
9097 action : cache
91- port : ${{ steps.set-up -port.outputs.port }}
98+ port : ${{ steps.board-to -port.outputs.port }}
9299 - name : Set up mpy-cross
93100 if : steps.set-up-submodules.outputs.frozen == 'True'
94101 uses : ./.github/actions/mpy_cross
@@ -115,9 +122,9 @@ jobs:
115122 FLAGS : ${{ inputs.flags }}
116123 DEBUG : ${{ inputs.debug && '1' || '0' }}
117124 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 }}
119126 - name : Upload artifact
120127 uses : actions/upload-artifact@v4
121128 with :
122129 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