Commit 593a8a1 1 parent c3f5812 commit 593a8a1 Copy full SHA for 593a8a1
File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Tag
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+ build :
10
+ name : Build
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ goos : [ linux ]
15
+ goarch : [ amd64, arm64 ]
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Extract k6 version from go.mod
19
+ id : version
20
+ run : |-
21
+ k6version=$(grep -e go.k6.io go.mod | cut -d' ' -f 2)
22
+ echo "Detected k6 version: ${k6version}"
23
+ echo "k6=${k6version}" >> $GITHUB_OUTPUT
24
+ - name : Build with xk6
25
+ run : |-
26
+ docker run --rm -i -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
27
+ -e "GOOS=${{ matrix.goos }}" -e "GOARCH=${{ matrix.goarch }}" \
28
+ grafana/xk6 build "${{ steps.version.outputs.k6 }}" \
29
+ --output "dist/sm-k6-${{ matrix.goos }}-${{ matrix.goarch }}" \
30
+ --with sm=.
31
+ - name : Release
32
+ run : |-
33
+ gh release create "${{ github.ref_name }}" \
34
+ --target "${{ github.sha }}" \
35
+ dist/*
36
+
37
+ golangci :
38
+ name : Lint
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v4
42
+ - name : golangci-lint
43
+ uses : golangci/golangci-lint-action@v6
44
+ with :
45
+ only-new-issues : true
46
+ args : --timeout=5m # 1m is not enough, experimentally.
You can’t perform that action at this time.
0 commit comments