@@ -51,20 +51,15 @@ jobs:
51
51
if : inputs.debug || inputs.flags != ''
52
52
run : |
53
53
> custom-build && git add custom-build
54
- - name : Get port
55
- id : get-port
56
- run : |
57
- PORT=$(find ports/*/boards/ -type d -name ${{ inputs.board }} | sed 's/^ports\///g;s/\/boards.*//g')
58
- if [ -z $PORT ]; then (exit 1); else echo >> $GITHUB_OUTPUT "port=$PORT"; fi
59
- - name : Port to platform
60
- run : echo >> $GITHUB_ENV "PLATFORM=${{ env[format('PLATFORM_{0}', steps.get-port.outputs.port)] }}"
61
54
- name : Set up python
62
55
uses : actions/setup-python@v4
63
56
with :
64
57
python-version : 3.x
65
58
- name : Set up port
66
- if : env.PLATFORM == 'esp'
67
- uses : ./.github/actions/deps/ports/espressif
59
+ id : set-up-port
60
+ uses : ./.github/actions/deps/ports
61
+ with :
62
+ board : ${{ inputs.board }}
68
63
- name : Set up submodules
69
64
id : set-up-submodules
70
65
uses : ./.github/actions/deps/submodules
75
70
uses : ./.github/actions/deps/external
76
71
with :
77
72
action : cache
78
- platform : ${{ env.PLATFORM }}
73
+ platform : ${{ env[format('PLATFORM_{0}', steps.set-up-port.outputs.port)] }}
79
74
- name : Set up mpy-cross
80
75
if : steps.set-up-submodules.outputs.frozen == 'True'
81
76
uses : ./.github/actions/mpy_cross
96
91
mkfs.fat --version || true
97
92
- name : Build board
98
93
run : make -j2 ${{ inputs.flags }} BOARD=${{ inputs.board }} DEBUG=${{ inputs.debug && '1' || '0' }} TRANSLATION=${{ inputs.language }}
99
- working-directory : ports/${{ steps.get -port.outputs.port }}
94
+ working-directory : ports/${{ steps.set-up -port.outputs.port }}
100
95
- name : Upload artifact
101
96
uses : actions/upload-artifact@v3
102
97
with :
103
98
name : ${{ inputs.board }}-${{ inputs.language }}-${{ inputs.version }}${{ inputs.flags != '' && '-custom' || '' }}${{ inputs.debug && '-debug' || '' }}
104
- path : ports/${{ steps.get -port.outputs.port }}/build-${{ inputs.board }}/firmware.*
99
+ path : ports/${{ steps.set-up -port.outputs.port }}/build-${{ inputs.board }}/firmware.*
0 commit comments