File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : Build PRs
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - main
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Build the Plugin
14
+ run : make build-docker
15
+
16
+ - name : Upload build artifacts
17
+ uses : actions/upload-artifact@v2
18
+ with :
19
+ name : plugin-binaries
20
+ path : releases
Original file line number Diff line number Diff line change 1
1
name : Build and Release Waypoint Plugin
2
2
on :
3
3
push :
4
- branches :
5
- - main
4
+ tags :
5
+ - " v* "
6
6
7
7
jobs :
8
8
build :
19
19
name : plugin-binaries
20
20
path : releases
21
21
22
+
22
23
create_release :
23
- if : contains(github.ref, 'v')
24
24
runs-on : ubuntu-latest
25
25
needs : build
26
26
@@ -39,14 +39,14 @@ jobs:
39
39
outputs :
40
40
upload_url : ${{ steps.create_release.outputs.upload_url }}
41
41
42
+
42
43
upload_assets :
43
- if : contains(github.ref, 'v')
44
44
runs-on : ubuntu-latest
45
45
needs : create_release
46
46
47
47
strategy :
48
48
matrix :
49
- os : [darwin_amd64, linux_amd64, windows_386, windows_amd64]
49
+ os : [darwin_amd64, linux_amd64, windows_amd64]
50
50
51
51
steps :
52
52
- name : Download built plugin binaries
Original file line number Diff line number Diff line change 27
27
GOOS=linux GOARCH=amd64 go build -o ./bin/linux_amd64/waypoint-plugin-${PLUGIN_NAME} ./main.go
28
28
GOOS=darwin GOARCH=amd64 go build -o ./bin/darwin_amd64/waypoint-plugin-${PLUGIN_NAME} ./main.go
29
29
GOOS=windows GOARCH=amd64 go build -o ./bin/windows_amd64/waypoint-plugin-${PLUGIN_NAME}.exe ./main.go
30
- GOOS=windows GOARCH=386 go build -o ./bin/windows_386/waypoint-plugin-${PLUGIN_NAME}.exe ./main.go
31
30
32
31
# Install the plugin locally
33
32
install :
41
40
zip -j ./bin/waypoint-plugin-${PLUGIN_NAME} _linux_amd64.zip ./bin/linux_amd64/waypoint-plugin-${PLUGIN_NAME}
42
41
zip -j ./bin/waypoint-plugin-${PLUGIN_NAME} _darwin_amd64.zip ./bin/darwin_amd64/waypoint-plugin-${PLUGIN_NAME}
43
42
zip -j ./bin/waypoint-plugin-${PLUGIN_NAME} _windows_amd64.zip ./bin/windows_amd64/waypoint-plugin-${PLUGIN_NAME} .exe
44
- zip -j ./bin/waypoint-plugin-${PLUGIN_NAME} _windows_386.zip ./bin/windows_386/waypoint-plugin-${PLUGIN_NAME} .exe
45
43
46
44
# Build the plugin using a Docker container
47
45
build-docker :
You can’t perform that action at this time.
0 commit comments