1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/publish-go-tester-task.md
2
2
name : Publish Tester Build
3
3
4
- env :
5
- # See: https://github.com/actions/setup-go/tree/v2#readme
6
- GO_VERSION : ^1.16.2
7
- # As defined by the Taskfile's DIST_DIR variable
8
- DIST_DIR : dist
9
- BUILDS_ARTIFACT : build-artifacts
10
-
11
- # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4
+ # See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
12
5
on :
13
6
create :
14
7
push :
30
23
workflow_dispatch :
31
24
repository_dispatch :
32
25
26
+ env :
27
+ # See: https://github.com/actions/setup-go/tree/main#supported-version-syntax
28
+ GO_VERSION : " 1.17"
29
+ # As defined by the Taskfile's DIST_DIR variable
30
+ DIST_DIR : dist
31
+ BUILDS_ARTIFACT : build-artifacts
32
+
33
33
jobs :
34
34
run-determination :
35
35
runs-on : ubuntu-latest
41
41
run : |
42
42
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
43
43
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
44
- if [[ \
45
- "${{ github.event_name }}" != "create" || \
46
- "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \
44
+ if [[
45
+ "${{ github.event_name }}" != "create" ||
46
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
47
47
]]; then
48
48
# Run the other jobs.
49
49
RESULT="true"
86
86
87
87
# Transfer builds to artifacts job
88
88
- name : Upload combined builds artifact
89
- uses : actions/upload-artifact@v2
89
+ uses : actions/upload-artifact@v3
90
90
with :
91
91
path : ${{ env.DIST_DIR }}
92
92
name : ${{ env.BUILDS_ARTIFACT }}
@@ -99,16 +99,22 @@ jobs:
99
99
strategy :
100
100
matrix :
101
101
artifact :
102
+ - path : " *checksums.txt"
103
+ name : checksums
102
104
- path : " *Linux_32bit.tar.gz"
103
105
name : Linux_X86-32
104
106
- path : " *Linux_64bit.tar.gz"
105
107
name : Linux_X86-64
106
- - path : " *Linux_ARM.tar.gz"
107
- name : Linux_ARM
108
108
- path : " *Linux_ARM64.tar.gz"
109
109
name : Linux_ARM64
110
+ - path : " *Linux_ARMv6.tar.gz"
111
+ name : Linux_ARMv6
112
+ - path : " *Linux_ARMv7.tar.gz"
113
+ name : Linux_ARMv7
110
114
- path : " *macOS_64bit.tar.gz"
111
115
name : macOS_64
116
+ - path : " *macOS_ARM64.tar.gz"
117
+ name : macOS_ARM64
112
118
- path : " *Windows_32bit.zip"
113
119
name : Windows_X86-32
114
120
- path : " *Windows_64bit.zip"
@@ -122,7 +128,7 @@ jobs:
122
128
path : ${{ env.BUILDS_ARTIFACT }}
123
129
124
130
- name : Upload individual build artifact
125
- uses : actions/upload-artifact@v2
131
+ uses : actions/upload-artifact@v3
126
132
with :
127
133
path : ${{ env.BUILDS_ARTIFACT }}/${{ matrix.artifact.path }}
128
134
name : ${{ matrix.artifact.name }}
0 commit comments