File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*.*.*"
7
+
8
+ env :
9
+ K6_VERSION : v0.46.0
10
+ XK6_VERSION : v0.9.2
11
+ GO_VERSION : 1.21
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ os : [linux, darwin]
19
+ arch : [amd64]
20
+ env :
21
+ ARTIFACT_NAME : k6-${{ matrix.os }}-${{ matrix.arch }}
22
+ steps :
23
+ - uses : actions/setup-go@v4
24
+ with :
25
+ go-version : ${{ env.GO_VERSION }}
26
+
27
+ - name : Checkout
28
+ uses : actions/checkout@v3
29
+
30
+ - name : Install xk6
31
+ run : go install go.k6.io/xk6/cmd/xk6@${{ env.XK6_VERSION }}
32
+
33
+ - name : Build k6 with tarantool-xk6 extension
34
+ run : |
35
+ xk6 build ${{ env.K6_VERSION }} \
36
+ --with github.com/tarantool/xk6-tarantool=. \
37
+ --output ${{ env.ARTIFACT_NAME }}
38
+ env :
39
+ CGO_ENABLED : " 0"
40
+ GOFLAGS : " -tags=go_tarantool_ssl_disable,go_tarantool_call_17,go_tarantool_msgpack_v5"
41
+ GOOS : ${{ matrix.os }}
42
+ GOARCH : ${{ matrix.arch }}
43
+
44
+ - name : Release
45
+ uses : softprops/action-gh-release@v1
46
+ if : startsWith(github.ref, 'refs/tags/')
47
+ with :
48
+ files : |
49
+ ${{ env.ARTIFACT_NAME }}
You can’t perform that action at this time.
0 commit comments