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
CI polishing, add win64, update macOS min version (#578)
* uniform `test.yml` to `release.yml`
* added again #561 for testing purposes
* add win64 build in and refactor taskfile
* change min supported macOS version to 10.11 (also go 1.14)
* hard-code gon config in a step for uniformity and ease
* refactor and optimize Taskfile (✨) change also workflows accordingly
* add another win CI matrix to build win 32-64
* add win 32/64 to all the jobs in the release workflow & optimizations 🧙🏻
TAG_VERSION: ${GITHUB_REF##*/} # will be available to all steps and will be used by task build
16
24
17
25
steps:
18
26
- name: Disable EOL conversions
@@ -24,7 +32,7 @@ jobs:
24
32
- name: Install Go
25
33
uses: actions/setup-go@v2
26
34
with:
27
-
go-version: "1.15"
35
+
go-version: "1.14"
28
36
29
37
# dependencies used for compiling the GUI
30
38
- name: Install Dependencies (Linux)
@@ -53,7 +61,7 @@ jobs:
53
61
run: task test-unit
54
62
55
63
- name: Build the Agent for linux
56
-
run: task build
64
+
run: task build
57
65
if: matrix.operating-system == 'ubuntu-18.04'
58
66
59
67
# build the agent without GUI support (no tray icon)
@@ -62,32 +70,36 @@ jobs:
62
70
if: matrix.operating-system == 'ubuntu-18.04'
63
71
64
72
# 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
-
# rsrc will produce *.syso files that should get automatically recognized by go build command and linked into an executable.
66
-
- name: Embed manifest in win binary
67
-
run: |
68
-
go get github.com/akavel/rsrc
69
-
rsrc -arch 386 -manifest manifest.xml
73
+
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
74
+
- name: Download tool to embed manifest in win binary
75
+
run: go get github.com/akavel/rsrc
70
76
if: matrix.operating-system == 'windows-2019'
71
77
72
78
# building the agent for win requires a different task because of an extra flag
73
79
- name: Build the Agent for win32
74
80
env:
75
81
GOARCH: 386# 32bit architecture (for support)
76
82
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)
# build the agent without GUI support (no tray icon)
57
63
- name: Build the Agent-cli
58
64
run: task build-cli
59
65
if: matrix.operating-system == 'ubuntu-18.04'
60
66
61
67
# 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
-
# rsrc will produce *.syso files that should get automatically recognized by go build command and linked into an executable.
63
-
- name: Embed manifest in win binary
64
-
run: |
65
-
go get github.com/akavel/rsrc
66
-
rsrc -arch 386 -manifest manifest.xml
68
+
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
69
+
- name: Download tool to embed manifest in win binary
70
+
run: go get github.com/akavel/rsrc
67
71
if: matrix.operating-system == 'windows-2019'
68
72
69
73
# building the agent for win requires a different task because of an extra flag
70
74
- name: Build the Agent for win32
71
75
env:
72
76
GOARCH: 386# 32bit architecture (for support)
73
77
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