You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# build the agent without GUI support (no tray icon)
60
60
- name: Build the Agent-cli
61
61
run: task build-cli
62
-
if: matrix.operating-system == 'ubuntu-latest'
62
+
if: matrix.operating-system == 'ubuntu-18.04'
63
63
64
64
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
65
65
# rsrc will produce *.syso files that should get automatically recognized by go build command and linked into an executable.
66
66
- name: Embed manifest in win binary
67
67
run: |
68
68
go get github.com/akavel/rsrc
69
69
rsrc -arch 386 -manifest manifest.xml
70
-
if: matrix.operating-system == 'windows-latest'
70
+
if: matrix.operating-system == 'windows-2019'
71
71
72
72
# building the agent for win requires a different task because of an extra flag
73
73
- name: Build the Agent for win32
74
74
env:
75
75
GOARCH: 386# 32bit architecture (for support)
76
76
GO386: 387# support old instruction sets without MMX (used in the Pentium 4) (will be deprecated in GO > 1.15 https://golang.org/doc/go1.15)
77
77
run: task build-win32
78
-
if: matrix.operating-system == 'windows-latest'
78
+
if: matrix.operating-system == 'windows-2019'
79
79
80
80
# config.ini is required by the executable when it's run
81
81
- name: Upload artifacts
@@ -90,7 +90,9 @@ jobs:
90
90
# The code-sign-mac-executable job will download the macos artifact from the previous job, sign e notarize the binary and re-upload it.
91
91
code-sign-mac-executable:
92
92
needs: build
93
-
runs-on: macos-latest
93
+
runs-on: macos-10.15
94
+
env:
95
+
RUNS_ON: macos-10.15 # used to parametrize filenames
94
96
95
97
steps:
96
98
- name: Checkout
@@ -102,8 +104,8 @@ jobs:
102
104
- name: Download artifact
103
105
uses: actions/download-artifact@v2
104
106
with:
105
-
name: arduino-create-agent-macos-latest
106
-
path: arduino-create-agent-macos-latest
107
+
name: arduino-create-agent-${{ env.RUNS_ON }}
108
+
path: arduino-create-agent-${{ env.RUNS_ON }}
107
109
108
110
- name: Import Code-Signing Certificates
109
111
env:
@@ -128,22 +130,22 @@ jobs:
128
130
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
129
131
run: |
130
132
gon -log-level=debug -log-json gon.config.hcl
131
-
# gon will notarize executable in "arduino-create-agent-macos-latest/arduino-create-agent
133
+
# gon will notarize executable in "arduino-create-agent-${{ env.RUNS_ON }}/arduino-create-agent
132
134
# The CI will ignore the zip output, using the signed binary only.
133
135
timeout-minutes: 30
134
136
135
-
# This step will overwrite the non signed mac artifact (arduino-create-agent-macos-latest)
137
+
# This step will overwrite the non signed mac artifact (arduino-create-agent-${{ env.RUNS_ON }})
136
138
- name: Upload artifact
137
139
uses: actions/upload-artifact@v2
138
140
with:
139
-
name: arduino-create-agent-macos-latest
140
-
path: arduino-create-agent-macos-latest
141
+
name: arduino-create-agent-${{ env.RUNS_ON }}
142
+
path: arduino-create-agent-${{ env.RUNS_ON }}
141
143
if-no-files-found: error
142
144
143
145
# This job is responsible for generating the installers (using installbuilder)
144
146
package:
145
147
needs: code-sign-mac-executable
146
-
runs-on: ubuntu-latest
148
+
runs-on: ubuntu-18.04
147
149
148
150
env:
149
151
# vars used by installbuilder
@@ -163,19 +165,19 @@ jobs:
163
165
strategy:
164
166
fail-fast: false # if one os is failing continue nonetheless
165
167
matrix: # used to generate installers for different OS and not for runs-on
# build the agent without GUI support (no tray icon)
57
57
- name: Build the Agent-cli
58
58
run: task build-cli
59
-
if: matrix.operating-system == 'ubuntu-latest'
59
+
if: matrix.operating-system == 'ubuntu-18.04'
60
60
61
61
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
62
62
# rsrc will produce *.syso files that should get automatically recognized by go build command and linked into an executable.
63
63
- name: Embed manifest in win binary
64
64
run: |
65
65
go get github.com/akavel/rsrc
66
66
rsrc -arch 386 -manifest manifest.xml
67
-
if: matrix.operating-system == 'windows-latest'
67
+
if: matrix.operating-system == 'windows-2019'
68
68
69
69
# building the agent for win requires a different task because of an extra flag
70
70
- name: Build the Agent for win32
71
71
env:
72
72
GOARCH: 386# 32bit architecture (for support)
73
73
GO386: 387# support old instruction sets without MMX (used in the Pentium 4) (will be deprecated in GO > 1.15 https://golang.org/doc/go1.15)
0 commit comments