File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
.github/actions/build-and-persist-plugin-binary Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build-and-persist-plugin-binary
2
+ inputs :
3
+ GOOS :
4
+ required : true
5
+ GOARCH :
6
+ required : true
7
+ runs :
8
+ using : composite
9
+ steps :
10
+ - uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
11
+ - run : " GOOS=${{ inputs.GOOS }} GOARCH=${{ inputs.GOARCH }} go build -o ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }} ."
12
+ shell : bash
13
+ - run : zip ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}
14
+ shell : bash
15
+ - run : rm ./pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}
16
+ shell : bash
17
+ - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
18
+ with :
19
+ name : " packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip"
20
+ path : " pkg/packer_plugin_proxmox_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip"
21
+ retention-days : 30
You can’t perform that action at this time.
0 commit comments