Skip to content

Commit 516d13b

Browse files
authored
Merge pull request #174 from arduino/github/actions-v4
Actions v4 + Mac Universal build
2 parents 74e7115 + 2fc901a commit 516d13b

File tree

2 files changed

+34
-20
lines changed

2 files changed

+34
-20
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ jobs:
2424
matrix:
2525
config:
2626
- os: [self-hosted, windows-sign-pc]
27+
id: windows
2728
- os: ubuntu-latest
28-
- os: macos-13
29-
- os: macos-14
29+
id: linux
30+
- os: macos-latest
31+
id: macos-universal
3032
runs-on: ${{ matrix.config.os }}
3133
timeout-minutes: 90
3234

@@ -92,9 +94,9 @@ jobs:
9294
npm run build
9395
9496
- name: Upload [GitHub Actions]
95-
uses: actions/upload-artifact@v3
97+
uses: actions/upload-artifact@v4
9698
with:
97-
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
99+
name: ${{ env.JOB_TRANSFER_ARTIFACT }}-${{ matrix.config.id }}
98100
path: dist
99101

100102
artifacts:
@@ -108,26 +110,29 @@ jobs:
108110
artifact:
109111
- path: "*-linux_x64.zip"
110112
name: Arduino-Lab-for-MicroPython_Linux_X86-64
111-
- path: "*-mac_x64.zip"
112-
name: Arduino-Lab-for-MicroPython_macOS_X86-64
113-
- path: "*-mac_arm64.zip"
114-
name: Arduino-Lab-for-MicroPython_macOS_arm-64
113+
id: linux
114+
- path: "*-mac_universal.zip"
115+
name: Arduino-Lab-for-MicroPython_macOS_Universal
116+
id: macos-universal
115117
# - path: "*Windows_64bit.exe"
116118
# name: Windows_X86-64_interactive_installer
119+
# id: windows
117120
# - path: "*Windows_64bit.msi"
118121
# name: Windows_X86-64_MSI
122+
# id: windows
119123
- path: "*-win_x64.zip"
120124
name: Arduino-Lab-for-MicroPython_Windows_X86-64
125+
id: windows
121126

122127
steps:
123128
- name: Download job transfer artifact
124-
uses: actions/download-artifact@v3
129+
uses: actions/download-artifact@v4
125130
with:
126-
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
131+
name: ${{ env.JOB_TRANSFER_ARTIFACT }}-${{ matrix.artifact.id }}
127132
path: ${{ env.JOB_TRANSFER_ARTIFACT }}
128133

129134
- name: Upload tester build artifact
130-
uses: actions/upload-artifact@v3
135+
uses: actions/upload-artifact@v4
131136
with:
132137
name: ${{ matrix.artifact.name }}
133138
path: ${{ env.JOB_TRANSFER_ARTIFACT }}/${{ matrix.artifact.path }}
@@ -137,23 +142,25 @@ jobs:
137142
if: github.repository == 'arduino/lab-micropython-editor' && startsWith(github.ref, 'refs/tags/')
138143
runs-on: ubuntu-latest
139144
steps:
140-
- name: Download [GitHub Actions]
141-
uses: actions/download-artifact@v3
145+
- name: Download all artifacts
146+
uses: actions/download-artifact@v4
142147
with:
143-
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
144-
path: ${{ env.JOB_TRANSFER_ARTIFACT }}
148+
path: artifacts
149+
150+
- name: List artifacts
151+
run: ls -R artifacts
145152

146153
- name: Get Tag
147154
id: tag_name
148155
run: |
149-
echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}
156+
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
150157
151158
- name: Publish Release [GitHub]
152159
uses: svenstaro/upload-release-action@2.2.0
153160
with:
154161
repo_token: ${{ secrets.GITHUB_TOKEN }}
155162
release_name: ${{ steps.tag_name.outputs.TAG_NAME }}
156-
file: ${{ env.JOB_TRANSFER_ARTIFACT }}/*
163+
file: artifacts/**/*
157164
tag: ${{ github.ref }}
158165
file_glob: true
159166

@@ -167,7 +174,11 @@ jobs:
167174
runs-on: ubuntu-latest
168175

169176
steps:
170-
- name: Remove unneeded job transfer artifact
177+
- name: Remove unneeded job transfer artifacts
171178
uses: geekyeggo/delete-artifact@v2
172179
with:
173-
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
180+
name: |
181+
${{ env.JOB_TRANSFER_ARTIFACT }}-windows
182+
${{ env.JOB_TRANSFER_ARTIFACT }}-linux
183+
${{ env.JOB_TRANSFER_ARTIFACT }}-macos-x64
184+
${{ env.JOB_TRANSFER_ARTIFACT }}-macos-arm64

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
"artifactName": "${productName}-${os}_${arch}.${ext}",
2424
"extraResources": "./ui/arduino/helpers.py",
2525
"mac": {
26-
"target": "zip",
26+
"target": [{
27+
"target": "zip",
28+
"arch": ["universal"]
29+
}],
2730
"icon": "build_resources/icon.icns"
2831
},
2932
"win": {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy