File tree 2 files changed +15
-1
lines changed 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 56
56
run : task build
57
57
if : matrix.operating-system != 'windows-latest'
58
58
59
+ - name : Build the Agent-cli
60
+ run : task build-cli
61
+ if : matrix.operating-system == 'ubuntu-latest'
62
+
59
63
- name : Build the Agent for win
60
64
run : task build-win
61
65
if : matrix.operating-system == 'windows-latest'
@@ -125,12 +129,16 @@ jobs:
125
129
path : ${{ matrix.executable-path }}
126
130
127
131
- name : Make executable
128
- run : chmod +x ${{ matrix.executable-path }}arduino-create-agent
132
+ run : chmod +x ${{ matrix.executable-path }}arduino-create-agent*
129
133
if : matrix.operating-system == 'ubuntu-latest' || matrix.operating-system == 'macOS-latest'
130
134
131
135
- name : Rename executable to Arduino_Create_Bridge
132
136
run : mv ${{ matrix.executable-path }}arduino-create-agent${{ matrix.extension }} ${{ matrix.executable-path }}Arduino_Create_Bridge${{ matrix.extension }}
133
137
138
+ - name : Rename executable to Arduino_Create_Bridge_cli
139
+ run : mv ${{ matrix.executable-path }}arduino-create-agent_cli${{ matrix.extension }} ${{ matrix.executable-path }}Arduino_Create_Bridge_cli${{ matrix.extension }}
140
+ if : matrix.operating-system == 'ubuntu-latest'
141
+
134
142
- name : Save InstallBuilder license to file
135
143
run : echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
136
144
Original file line number Diff line number Diff line change 7
7
cmds :
8
8
- go build -v -i {{.LDFLAGS}}
9
9
10
+ build-cli :
11
+ desc : Build the project without tray support
12
+ cmds :
13
+ - go build -v -i -tags cli -o {{.APP_NAME}}_cli {{.LDFLAGS}}
14
+
10
15
build-win :
11
16
desc : Build the project for win
12
17
cmds :
47
52
DEFAULT_TARGETS :
48
53
sh : echo `go list ./... | grep -v 'arduino-create-agent/gen/' | tr '\n' ' '`
49
54
# build vars
55
+ APP_NAME : arduino-create-agent
50
56
WIN_FLAGS : -H=windowsgui
51
57
COMMIT :
52
58
sh : echo ${TRAVIS_COMMIT:-`git log -n 1 --format=%h`}
You can’t perform that action at this time.
0 commit comments