8
8
DIST_DIR : dist
9
9
# The project's folder on Arduino's download server for uploading builds
10
10
AWS_PLUGIN_TARGET : /arduino-language-server/
11
- ARTIFACT_NAME : dist
11
+ ARTIFACT_PREFIX : dist-
12
12
13
13
on :
14
14
push :
@@ -21,16 +21,25 @@ jobs:
21
21
22
22
strategy :
23
23
matrix :
24
- task :
25
- - Windows_32bit
26
- - Windows_64bit
27
- - Linux_32bit
28
- - Linux_64bit
29
- - Linux_ARMv6
30
- - Linux_ARMv7
31
- - Linux_ARM64
32
- - macOS_64bit
33
- - macOS_ARM64
24
+ os :
25
+ - task : Windows_32bit
26
+ artifact-suffix : Windows_32bit
27
+ - task : Windows_64bit
28
+ artifact-suffix : Windows_64bit
29
+ - task : Linux_32bit
30
+ artifact-suffix : Linux_32bit
31
+ - task : Linux_64bit
32
+ artifact-suffix : Linux_64bit
33
+ - task : Linux_ARMv6
34
+ artifact-suffix : Linux_ARMv6
35
+ - task : Linux_ARMv7
36
+ artifact-suffix : Linux_ARMv7
37
+ - task : Linux_ARM64
38
+ artifact-suffix : Linux_ARM64
39
+ - task : macOS_64bit
40
+ artifact-suffix : macOS_64bit
41
+ - task : macOS_ARM64
42
+ artifact-suffix : macOS_ARM64
34
43
35
44
steps :
36
45
- name : Checkout repository
40
49
41
50
- name : Create changelog
42
51
# Avoid creating the same changelog for each os
43
- if : matrix.task == 'Windows_32bit'
52
+ if : matrix.os. task == 'Windows_32bit'
44
53
uses : arduino/create-changelog@v1
45
54
with :
46
55
tag-regex : ' ^[0-9]+\.[0-9]+\.[0-9]+.*$'
@@ -55,13 +64,13 @@ jobs:
55
64
version : 3.x
56
65
57
66
- name : Build
58
- run : task dist:${{ matrix.task }}
67
+ run : task dist:${{ matrix.os. task }}
59
68
60
69
- name : Upload artifacts
61
- uses : actions/upload-artifact@v3
70
+ uses : actions/upload-artifact@v4
62
71
with :
63
72
if-no-files-found : error
64
- name : ${{ env.ARTIFACT_NAME }}
73
+ name : ${{ env.ARTIFACT_PREFIX }}${{ matrix.os.artifact-suffix }}
65
74
path : ${{ env.DIST_DIR }}
66
75
67
76
notarize-macos :
78
87
strategy :
79
88
matrix :
80
89
build :
81
- - folder-suffix : darwin_amd64
90
+ - artifact-suffix : macOS_64bit
91
+ folder-suffix : darwin_amd64
82
92
package-suffix : " macOS_64bit.tar.gz"
83
- - folder-suffix : darwin_arm64
93
+ - artifact-suffix : macOS_ARM64
94
+ folder-suffix : darwin_arm64
84
95
package-suffix : " macOS_ARM64.tar.gz"
85
96
86
97
steps :
95
106
uses : actions/checkout@v4
96
107
97
108
- name : Download artifacts
98
- uses : actions/download-artifact@v3
109
+ uses : actions/download-artifact@v4
99
110
with :
100
- name : ${{ env.ARTIFACT_NAME }}
111
+ name : ${{ env.ARTIFACT_PREFIX }}${{ matrix.build.artifact-suffix }}
101
112
path : ${{ env.DIST_DIR }}
102
113
103
114
- name : Import Code-Signing Certificates
@@ -168,11 +179,12 @@ jobs:
168
179
-C "${{ env.BUILD_FOLDER }}/" "${{ env.PROJECT_NAME }}" \
169
180
-C ../../ LICENSE.txt
170
181
171
- - name : Upload artifact
172
- uses : actions/upload-artifact@v3
182
+ - name : Replace artifact with notarized build
183
+ uses : actions/upload-artifact@v4
173
184
with :
174
185
if-no-files-found : error
175
- name : ${{ env.ARTIFACT_NAME }}
186
+ name : ${{ env.ARTIFACT_PREFIX }}${{ matrix.build.artifact-suffix }}
187
+ overwrite : true
176
188
path : ${{ env.DIST_DIR }}/${{ env.PACKAGE_FILENAME }}
177
189
178
190
create-release :
@@ -181,9 +193,10 @@ jobs:
181
193
182
194
steps :
183
195
- name : Download artifact
184
- uses : actions/download-artifact@v3
196
+ uses : actions/download-artifact@v4
185
197
with :
186
- name : ${{ env.ARTIFACT_NAME }}
198
+ pattern : ${{ env.ARTIFACT_PREFIX }}*
199
+ merge-multiple : true
187
200
path : ${{ env.DIST_DIR }}
188
201
189
202
- name : Create checksum file
0 commit comments