File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,19 @@ jobs:
55
55
56
56
- name : Build Plugin
57
57
shell : bash
58
- run : task build
58
+ run : |
59
+ task build
59
60
env :
60
61
OS : ${{ matrix.target }}
61
62
ARCH : ${{ matrix.arch }}
62
63
VERSION : ${{ inputs.tag_name }}
63
64
65
+ - name : Make binary executable
66
+ if : ${{ matrix.target != 'windows' }}
67
+ run : |
68
+ ls -la build/
69
+ chmod +x build/node-manager-plugin*
70
+
64
71
- name : Sign Macos binary
65
72
uses : massalabs/massa/.github/actions/sign-macos@ccc3f02e34544f722634a6fb7732cc4bb515e90b
66
73
if : ${{ runner.os == 'macOS' }}
Original file line number Diff line number Diff line change @@ -95,10 +95,11 @@ jobs:
95
95
- name : Download plugin binary artifacts
96
96
uses : actions/download-artifact@v4
97
97
with :
98
- pattern : ' node-manager-plugin_ ${{matrix.target}}* '
98
+ pattern : ${{ env.TARGET_NAME }}
99
99
100
100
- name : make bin executable
101
101
run : |
102
+ ls -la ${{ env.TARGET_NAME }}
102
103
chmod +x ${{ env.TARGET_NAME }}/*
103
104
104
105
- name : zip package
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ tasks:
106
106
- cmd : ' echo Version: {{.VERSION | default "Development"}}'
107
107
silent : true
108
108
- cmd : go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}{{.BIN_EXT}} ./main.go
109
+
109
110
vars :
110
111
PRODUCTION : ' {{if ne .VERSION nil}}{{if ne .VERSION ""}}true{{end}}{{end}}'
111
112
VERSION_FLAG : ' {{if ne .VERSION nil}}{{if ne .VERSION ""}}-X github.com/massalabs/node-manager-plugin/int/config.Version={{.VERSION}}{{end}}{{end}}'
You can’t perform that action at this time.
0 commit comments