2424 matrix :
2525 config :
2626 - os : [self-hosted, windows-sign-pc]
27+ id : windows
2728 - os : ubuntu-latest
29+ id : linux
2830 - os : macos-13
31+ id : macos-x64
2932 - os : macos-14
33+ id : macos-arm64
3034 runs-on : ${{ matrix.config.os }}
3135 timeout-minutes : 90
3236
9498 - name : Upload [GitHub Actions]
9599 uses : actions/upload-artifact@v4
96100 with :
97- name : ${{ env.JOB_TRANSFER_ARTIFACT }}
101+ name : ${{ env.JOB_TRANSFER_ARTIFACT }}-${{ matrix.config.id }}
98102 path : dist
99103
100104 artifacts :
@@ -108,52 +112,60 @@ jobs:
108112 artifact :
109113 - path : " *-linux_x64.zip"
110114 name : Arduino-Lab-for-MicroPython_Linux_X86-64
115+ id : linux
111116 - path : " *-mac_x64.zip"
112117 name : Arduino-Lab-for-MicroPython_macOS_X86-64
118+ id : macos-x64
113119 - path : " *-mac_arm64.zip"
114120 name : Arduino-Lab-for-MicroPython_macOS_arm-64
121+ id : macos-arm64
115122 # - path: "*Windows_64bit.exe"
116123 # name: Windows_X86-64_interactive_installer
124+ # id: windows
117125 # - path: "*Windows_64bit.msi"
118126 # name: Windows_X86-64_MSI
127+ # id: windows
119128 - path : " *-win_x64.zip"
120129 name : Arduino-Lab-for-MicroPython_Windows_X86-64
130+ id : windows
121131
122132 steps :
123133 - name : Download job transfer artifact
124134 uses : actions/download-artifact@v4
125135 with :
126- name : ${{ env.JOB_TRANSFER_ARTIFACT }} # Keep this as is
136+ name : ${{ env.JOB_TRANSFER_ARTIFACT }}-${{ matrix.artifact.id }}
127137 path : ${{ env.JOB_TRANSFER_ARTIFACT }}
128138
129139 - name : Upload tester build artifact
130140 uses : actions/upload-artifact@v4
131141 with :
132- name : ${{ matrix.artifact.name }}-${{ github.run_id }}
142+ name : ${{ matrix.artifact.name }}
133143 path : ${{ env.JOB_TRANSFER_ARTIFACT }}/${{ matrix.artifact.path }}
134144
135145 release :
136146 needs : build
137147 if : github.repository == 'arduino/lab-micropython-editor' && startsWith(github.ref, 'refs/tags/')
138148 runs-on : ubuntu-latest
139149 steps :
140- - name : Download [GitHub Actions]
150+ - name : Download all artifacts
141151 uses : actions/download-artifact@v4
142152 with :
143- name : ${{ env.JOB_TRANSFER_ARTIFACT }}
144- path : ${{ env.JOB_TRANSFER_ARTIFACT }}
153+ path : artifacts
154+
155+ - name : List artifacts
156+ run : ls -R artifacts
145157
146158 - name : Get Tag
147159 id : tag_name
148160 run : |
149- echo ::set-output name= TAG_NAME:: ${GITHUB_REF#refs/tags/}
161+ echo " TAG_NAME= ${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
150162
151163 - name : Publish Release [GitHub]
152164153165 with :
154166 repo_token : ${{ secrets.GITHUB_TOKEN }}
155167 release_name : ${{ steps.tag_name.outputs.TAG_NAME }}
156- file : ${{ env.JOB_TRANSFER_ARTIFACT }} /*
168+ file : artifacts/** /*
157169 tag : ${{ github.ref }}
158170 file_glob : true
159171
@@ -167,7 +179,11 @@ jobs:
167179 runs-on : ubuntu-latest
168180
169181 steps :
170- - name : Remove unneeded job transfer artifact
182+ - name : Remove unneeded job transfer artifacts
171183 uses : geekyeggo/delete-artifact@v2
172184 with :
173- name : ${{ env.JOB_TRANSFER_ARTIFACT }}
185+ name : |
186+ ${{ env.JOB_TRANSFER_ARTIFACT }}-windows
187+ ${{ env.JOB_TRANSFER_ARTIFACT }}-linux
188+ ${{ env.JOB_TRANSFER_ARTIFACT }}-macos-x64
189+ ${{ env.JOB_TRANSFER_ARTIFACT }}-macos-arm64
0 commit comments